ソースを参照

Update Readme

pull/182/head
naibo 1年前
コミット
d4f89ddc13
9個のファイルの変更293行の追加19行の削除
  1. +1
    -0
      .temp_to_pub/EasySpider_windows_x64/execution_instances/28.json
  2. +222
    -0
      .temp_to_pub/EasySpider_windows_x64/info.log
  3. +1
    -0
      .temp_to_pub/EasySpider_windows_x64/tasks/212.json
  4. +21
    -8
      ElectronJS/README.md
  5. +11
    -0
      ElectronJS/execute_win32.bat
  6. +0
    -0
      ElectronJS/execute_win64.bat
  7. +2
    -2
      ElectronJS/update_chrome.py
  8. +18
    -5
      ExecuteStage/Readme.md
  9. +17
    -4
      Extension/README.md

+ 1
- 0
.temp_to_pub/EasySpider_windows_x64/execution_instances/28.json
ファイル差分が大きすぎるため省略します
ファイルの表示


+ 222
- 0
.temp_to_pub/EasySpider_windows_x64/info.log
ファイル差分が大きすぎるため省略します
ファイルの表示


+ 1
- 0
.temp_to_pub/EasySpider_windows_x64/tasks/212.json
ファイル差分が大きすぎるため省略します
ファイルの表示


+ 21
- 8
ElectronJS/README.md ファイルの表示

@ -1,4 +1,4 @@
# 环境编译说明/Environment Compilation Instruction
# 环境编译说明|Environment Compilation Instruction
EasySpider分三部分:
@ -18,19 +18,32 @@ EasySpider is divided into three parts:
This section covers the compilation instructions for the `main program`.
## 注意事项/Note
## 建议编译顺序|Suggested Compilation Order
1. 编译浏览器扩展,否则在主程序执行时会提示找不到`EasySpider_zh.crx`的错误。
2. 编译主程序,此时主程序可以正常运行,但无法执行任务,只能设计任务。
3. 编译执行阶段程序,否则无法执行程序,只能设计程序。
-----
1. Compile the browser extension, otherwise an error will be prompted when the main program is executed that `EasySpider_en.crx` cannot be found.
2. Compile the main program, at this time the main program can run normally, but can not execute the task, can only design the task.
3. Compile the execution stage program, otherwise the program cannot be executed, can only design the program.
## 注意事项|Note
请记住,每当EasySpider扩展程序和执行程序更新时,都要更新`EasySpider.crx`和`easyspider_executestage`文件。
Remember to update the `EasySpider.crx` and `easyspider_executestage` files whenever the EasySpider extension and execution program are updated.
## 环境构建/Environment Setup
## 环境构建|Environment Setup
以下以Windows x64版本为例。
Taking the example of Windows x64 version.
### 浏览器和驱动/Browser and Driver
### 浏览器和驱动|Browser and Driver
实在搞不定本节的情况下,下载一个直接能用的EasySpider,并把文件夹内的`EasySpider\resources\app\chrome_win64`文件夹拷贝到此`ElectronJS`文件夹下即可。
@ -89,7 +102,7 @@ For example, if you want to build this software on Windows x64 platform, then yo
Finally, copy the `stealth.min.js` and `execute.bat` (for Windows x64) file in this folder to these `chrome` folders.
### NodeJS环境/NodeJS Environment
### NodeJS环境|NodeJS Environment
1. Windows环境下需要先安装`VS Build Tools 2017` ([https://aka.ms/vs/15/release/vs_buildtools.exe](https://aka.ms/vs/15/release/vs_buildtools.exe))的`Visual C++ Build Tools`组件,不然下面的命令无法执行,其他系统不需要。
2. 安装`NodeJS`:[https://nodejs.org/zh-cn/download/](https://nodejs.org/zh-cn/download/)。
@ -113,7 +126,7 @@ npm install
npm install @electron-forge/cli -g
```
## 运行说明/Run Instruction
## 运行说明|Run Instruction
在当前文件夹执行以下命令即可在开发模式下运行程序:
@ -133,7 +146,7 @@ npm run start_direct
But so far can only design the task, can not execute the task, want to execute the task also need to complete the 'ExecuteStage' folder of the execution of the task program compilation instructions can be executed.
## 打包发布说明/Package Instruction
## 打包发布说明|Package Instruction
打包发布前,确保执行阶段程序`easyspider_executestage(.exe)`已放入`chrome(_win64)`文件夹内,且浏览器插件`EasySpider_zh.crx`已经是最新版本。
@ -173,7 +186,7 @@ package_win64.cmd
clean_and_release_win64.cmd
```
### (可选)编译成安装包/(Optional) Compile to an installation package
### (可选)编译成安装包|(Optional) Compile to an installation package
```
npm run make

+ 11
- 0
ElectronJS/execute_win32.bat ファイルの表示

@ -0,0 +1,11 @@
@REM msg * %cd%
if exist EasySpider (
start EasySpider/resources/app/chrome_win32/easyspider_executestage.exe %1 %2 %3 %4 %5 %6 %7 %8 %9
) else (
if exist resources (
cd ../
start EasySpider/resources/app/chrome_win32/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
)
)

ElectronJS/execute.bat → ElectronJS/execute_win64.bat ファイルの表示


+ 2
- 2
ElectronJS/update_chrome.py ファイルの表示

@ -150,7 +150,7 @@ if __name__ == "__main__":
for folder in os.listdir("./chrome_win64"):
if folder[0].isdigit() and os.path.isdir("./chrome_win64/"+folder):
shutil.rmtree("./chrome_win64/"+folder+"/Installer") # 删除Installer文件夹
copy_file("./execute.bat", "./chrome_win64/execute.bat")
copy_file("./execute_win64.bat", "./chrome_win64/execute.bat")
copy_file("./stealth.min.js", "./chrome_win64/stealth.min.js")
try:
copy_file(
@ -177,7 +177,7 @@ if __name__ == "__main__":
for folder in os.listdir("./chrome_win32"):
if folder[0].isdigit() and os.path.isdir("./chrome_win32/"+folder):
shutil.rmtree("./chrome_win32/"+folder+"/Installer") # 删除Installer文件夹
copy_file("./execute.bat", "./chrome_win32/execute.bat")
copy_file("./execute_win32.bat", "./chrome_win32/execute.bat")
copy_file("./stealth.min.js", "./chrome_win32/stealth.min.js")
try:
copy_file(

+ 18
- 5
ExecuteStage/Readme.md ファイルの表示

@ -1,4 +1,4 @@
# 环境编译说明/Environment Compilation Instruction
# 环境编译说明|Environment Compilation Instruction
EasySpider分三部分:
@ -18,7 +18,20 @@ EasySpider is divided into three parts:
This section covers the compilation instructions for the `Execution stage program`.
## 环境构建/Environment Setup
## 建议编译顺序|Suggested Compilation Order
1. 编译浏览器扩展,否则在主程序执行时会提示找不到`EasySpider_zh.crx`的错误。
2. 编译主程序,此时主程序可以正常运行,但无法执行任务,只能设计任务。
3. 编译执行阶段程序,否则无法执行程序,只能设计程序。
-----
1. Compile the browser extension, otherwise an error will be prompted when the main program is executed that `EasySpider_en.crx` cannot be found.
2. Compile the main program, at this time the main program can run normally, but can not execute the task, can only design the task.
3. Compile the execution stage program, otherwise the program cannot be executed, can only design the program.
## 环境构建|Environment Setup
1. 安装Python 3.7及以上版本并添加至系统环境变量:[https://www.python.org/downloads/](https://www.python.org/downloads/)。
2. 安装`pip3`并添加至系统环境变量(Windows安装python后会自带pip,Linux和MacOS安装方式请自行搜索)。
@ -38,7 +51,7 @@ This section covers the compilation instructions for the `Execution stage progra
pip3 install -r requirements.txt
```
## 运行说明/Run Instruction
## 运行说明|Run Instruction
运行程序前,确保已经完成了`ElectronJS`文件夹下`主程序`的编译,保证`chrome`文件夹和`chromedriver`环境已经就绪,同时**EasySpider主程序已在运行中**。
@ -62,13 +75,13 @@ python3 easyspider_executestage.py --id [1]
The above is an example command to run a task with the ID of `1`. For more information on command-line parameters, please refer to: [Argument Instruction](https://github.com/NaiboWang/EasySpider/wiki/Argument-Instruction) on the project's GitHub Wiki.
### VS Code调试/VS Code Debug
### VS Code调试|VS Code Debug
可以用VS Code打开此文件夹即可调试程序,可修改`.vscode`下的`launch.json`文件中的调试参数,调试说明参考:[https://zhuanlan.zhihu.com/p/41189402](https://zhuanlan.zhihu.com/p/41189402)。
You can use VS Code to open this folder and debug the program. You can modify the debugging parameters in the launch.json file located under the .vscode folder. For instructions on debugging with VSCode, you can refer to this guide: [Debugging Python with Visual Studio Code](https://code.visualstudio.com/docs/python/debugging).
## 打包说明/Package Instruction
## 打包说明|Package Instruction
如果想要在主程序直接点击`本地直接运行`按钮即可执行程序,则需要打包程序为可执行程序。

+ 17
- 4
Extension/README.md ファイルの表示

@ -1,4 +1,4 @@
# 环境编译说明/Environment Compilation Instruction
# 环境编译说明|Environment Compilation Instruction
EasySpider分三部分:
@ -18,7 +18,20 @@ EasySpider is divided into three parts:
This section covers the compilation instructions for the `Browser extension`, **all commands in this section are executed in the `manifest_v3` folder**, i.e., you need to `cd manifest_v3` first.
## 环境构建/Environment Setup
## 建议编译顺序|Suggested Compilation Order
1. 编译浏览器扩展,否则在主程序执行时会提示找不到`EasySpider_zh.crx`的错误。
2. 编译主程序,此时主程序可以正常运行,但无法执行任务,只能设计任务。
3. 编译执行阶段程序,否则无法执行程序,只能设计程序。
-----
1. Compile the browser extension, otherwise an error will be prompted when the main program is executed that `EasySpider_en.crx` cannot be found.
2. Compile the main program, at this time the main program can run normally, but can not execute the task, can only design the task.
3. Compile the execution stage program, otherwise the program cannot be executed, can only design the program.
## 环境构建|Environment Setup
1. 安装`NodeJS`:[https://nodejs.org/zh-cn/download/](https://nodejs.org/zh-cn/download/)。
2. 运行下面的命令来安装依赖:
@ -36,7 +49,7 @@ npm install
npm install
```
## 热加载扩展/Hot reload the extension
## 热加载扩展|Hot reload the extension
执行下面的命令来热加载扩展:
@ -56,7 +69,7 @@ npm run dev
Open a Chrome browser window, then enter `chrome://extensions/` in the browser address bar. On the opened page, open the `Developer mode` in the upper right corner, click `Load unpacked` and select the `manifest_v3/dist` folder to load the extension.
## 打包扩展/Package the extension
## 打包扩展|Package the extension
执行下面的命令来打包扩展:

読み込み中…
キャンセル
保存