Просмотр исходного кода

根据修改意见修改代码

pull/43/head
naibo 1 год назад
Родитель
Сommit
f161feec77
8 измененных файлов: 14 добавлений и 8 удалений
  1. +3
    -3
      ElectronJS/README.md
  2. +1
    -1
      ElectronJS/clean_win32.cmd
  3. +2
    -2
      ElectronJS/clean_win64.cmd
  4. +6
    -0
      ElectronJS/execute.bat
  5. +0
    -1
      ElectronJS/execution_instances/0.json
  6. +1
    -1
      ElectronJS/package.json
  7. +1
    -0
      ElectronJS/start_direct.cmd
  8. Двоичные данные
      ElectronJS/vs_BuildTools.exe

+ 3
- 3
ElectronJS/README.md Просмотреть файл

@ -25,17 +25,17 @@ chromedriver_mac64 # for mac x64
For example, if you want to build this software on Windows x64 platform, then you should first download a chrome for windows x64, then copy the whole `chrome` folder to this `ElectronJS` folder and rename the folder to `chrome_win64`, assume the chrome version you downloaded is 110; then, download a `chromedriver.exe` with version 110 for windows x64, and put it into the `chrome_win64` folder, then rename it to `chromedriver_win64.exe`.
Finally, copy the `stealth.min.js` file in this folder to all of these `chrome` folders.
Finally, copy the `stealth.min.js` and `execute.bat` (for windows) file in this folder to these `chrome` folders.
## Run Instruction
On Windows, you need to install `VS Build Tools 2017` (double click the vs_BuildTools.exe in this folder, then select and install the `Visual Studio Build Tools 2017` component) first for node-gyp to install `node-windows-manager`.
On Windows, you need to install `VS Build Tools 2017` (https://aka.ms/vs/15/release/vs_buildtools.exe, select and install the `Visual Studio Build Tools 2017` component) first for node-gyp to install `node-windows-manager`.
```
npm install
npm install @electron-forge/cli
npm install @electron-forge/cli -g
```
Then run the software in developing mode:

+ 1
- 1
ElectronJS/clean_win32.cmd Просмотреть файл

@ -2,7 +2,7 @@ move out\EasySpider-win32-ia32 out\EasySpider
rmdir /s /q out\EasySpider\resources\app\chrome_win64
rmdir /s /q out\EasySpider\resources\app\Data
rmdir /s /q out\EasySpider\resources\app\.idea
rmdir/s /q out\EasySpider\resources\app\tasks
rmdir /s /q out\EasySpider\resources\app\tasks
rmdir /s /q out\EasySpider\resources\app\execution_instances
rmdir /s /q out\EasySpider\resources\app\user_data
rmdir /s /q ..\Releases\EasySpider_windows_386\EasySpider

+ 2
- 2
ElectronJS/clean_win64.cmd Просмотреть файл

@ -2,8 +2,8 @@ move out\EasySpider-win32-x64 out\EasySpider
rmdir /s /q out\EasySpider\resources\app\chrome_win32
rmdir /s /q out\EasySpider\resources\app\Data
rmdir /s /q out\EasySpider\resources\app\.idea
rmdir/s /q out\EasySpider\resources\app\tasks
rmdir/s /q out\EasySpider\resources\app\user_data
rmdir /s /q out\EasySpider\resources\app\tasks
rmdir /s /q out\EasySpider\resources\app\user_data
rmdir /s /q out\EasySpider\resources\app\execution_instances
rmdir /s /q ..\Releases\EasySpider_windows_amd64\EasySpider
del out\EasySpider\resources\app\vs_BuildTools.exe

+ 6
- 0
ElectronJS/execute.bat Просмотреть файл

@ -0,0 +1,6 @@
@REM msg * %cd%
if exist EasySpider (
start EasySpider/resources/app/chrome_win64/easyspider_executestage.exe %1 %2 %3 %4 %5 %6 %7 %8 %9
) else (
start chrome_win64/easyspider_executestage.exe %1 %2 %3 %4 %5 %6 %7 %8 %9
)

+ 0
- 1
ElectronJS/execution_instances/0.json Просмотреть файл

@ -1 +0,0 @@
{"id":0,"name":"新web采集任务","url":"https://www.jd.com","links":"https://www.jd.com","create_time":"5/19/2023, 2:14:39 AM","containJudge":false,"desc":"https://www.jd.com","inputParameters":[{"id":0,"name":"urlList_0","nodeId":1,"nodeName":"打开网页","value":"https://www.jd.com","desc":"要采集的网址列表,多行以\\n分开","type":"string","exampleValue":"https://www.jd.com"}],"outputParameters":[{"id":0,"name":"自定义操作2","desc":"自定义操作返回的数据","type":"string","exampleValue":""},{"id":1,"name":"自定义操作","desc":"自定义操作返回的数据","type":"string","exampleValue":""}],"graph":[{"index":0,"id":0,"parentId":0,"type":-1,"option":0,"title":"root","sequence":[1,2],"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","wait":0},"isInLoop":false},{"id":1,"index":1,"parentId":0,"type":0,"option":1,"title":"打开网页","sequence":[],"isInLoop":false,"position":0,"parameters":{"useLoop":false,"xpath":"","wait":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"url":"https://www.jd.com","links":"https://www.jd.com","scrollType":0,"scrollCount":0}},{"id":2,"index":2,"parentId":0,"type":1,"option":8,"title":"循环","sequence":[3,4],"isInLoop":false,"position":1,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","wait":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"scrollType":0,"scrollCount":0,"loopType":"5","pathList":"","textList":"","code":"dsaf","waitTime":0,"exitCount":0,"historyWait":2}},{"id":3,"index":3,"parentId":2,"type":0,"option":5,"title":"自定义操作2","sequence":[],"isInLoop":true,"position":0,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","wait":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"codeMode":0,"code":"return window.innerHeight","waitTime":0,"recordASField":"1"}},{"id":4,"index":4,"parentId":2,"type":0,"option":5,"title":"自定义操作","sequence":[],"isInLoop":true,"position":1,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","wait":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"codeMode":"1","code":"python D:/test.py","waitTime":0,"recordASField":"1"}}]}

+ 1
- 1
ElectronJS/package.json Просмотреть файл

@ -19,7 +19,7 @@
"demo"
],
"author": "Naibo Wang",
"license": "CC0-1.0",
"license": "GPL-3.0",
"devDependencies": {
"@electron-forge/cli": "^6.0.5",
"@electron-forge/maker-deb": "^6.0.5",

+ 1
- 0
ElectronJS/start_direct.cmd Просмотреть файл

@ -0,0 +1 @@
npm run start_direct

Двоичные данные
ElectronJS/vs_BuildTools.exe Просмотреть файл


Загрузка…
Отмена
Сохранить