File tree Expand file tree Collapse file tree 5 files changed +16
-6
lines changed Expand file tree Collapse file tree 5 files changed +16
-6
lines changed Original file line number Diff line number Diff line change @@ -38,8 +38,16 @@ npm install
38
38
npm install @electron-forge/cli
39
39
```
40
40
41
+ Then run the software in developing mode:
42
+
43
+ ```
44
+ npm run start_direct
45
+ ```
46
+
41
47
## Package Instruction
42
48
49
+ After finish developing, package software by the following command:
50
+
43
51
```
44
52
npx electron-forge import
45
53
npm run package
@@ -51,7 +59,7 @@ optional:
51
59
npm run make
52
60
```
53
61
54
- ## For windows x64
62
+ ### For windows x64
55
63
56
64
依次执行下面两个cmd即可打包
57
65
@@ -60,7 +68,7 @@ package_win64.cmd
60
68
clean_win64.cmd
61
69
```
62
70
63
- ## For Windows x86
71
+ ### For Windows x86
64
72
依次执行下面两个cmd即可打包
65
73
66
74
```
Original file line number Diff line number Diff line change 38
38
< button type ="button " data =2 class ="btn btn-outline-primary options "> Click Element</ button >
39
39
< button type ="button " data =3 class ="btn btn-outline-primary options "> Collect Data</ button >
40
40
< button type ="button " data =4 class ="btn btn-outline-primary options "> Input Text</ button >
41
- <!-- <button type="button" data=5 class="btn btn-outline-primary options">- </button> -- >
41
+ < button type ="button " data =5 class ="btn btn-outline-primary options "> Custom Action </ button >
42
42
<!-- <button type="button" data=6 style="font-size: 14px!important;" class="btn btn-outline-primary options">Change Option</button> -->
43
43
<!-- <button type="button" data=7 class="btn btn-outline-primary options">-</button> -->
44
44
< button type ="button " data =8 class ="btn btn-outline-primary options "> Loop</ button >
Original file line number Diff line number Diff line change 38
38
< button type ="button " data =2 class ="btn btn-outline-primary options "> 点击元素</ button >
39
39
< button type ="button " data =3 class ="btn btn-outline-primary options "> 提取数据</ button >
40
40
< button type ="button " data =4 class ="btn btn-outline-primary options "> 输入文字</ button >
41
- < button type ="button " data =5 class ="btn btn-outline-primary options "> 识别验证码 </ button >
41
+ < button type ="button " data =5 class ="btn btn-outline-primary options "> 自定义操作 </ button >
42
42
< button type ="button " data =6 style ="font-size: 14px!important; " class ="btn btn-outline-primary options "> 切换下拉选项</ button >
43
43
< button type ="button " data =7 class ="btn btn-outline-primary options "> 移动到元素</ button >
44
44
< button type ="button " data =8 class ="btn btn-outline-primary options "> 循环</ button >
Original file line number Diff line number Diff line change @@ -784,7 +784,7 @@ def clean():
784
784
browser .get ('about:blank' )
785
785
browser .set_page_load_timeout (10 ) # 加载页面最大超时时间
786
786
browser .set_script_timeout (10 )
787
- id = c .id ;
787
+ id = c .id
788
788
print ("id: " , id )
789
789
if c .saved_file_name != "" :
790
790
saveName = "task_" + str (id ) + "_" + c .saved_file_name # 保存文件的名字
@@ -797,7 +797,7 @@ def clean():
797
797
content = requests .get (backEndAddress + "/queryExecutionInstance?id=" + str (id ))
798
798
else :
799
799
print ("local" )
800
- with open ("tasks /" + str (id ) + ".json" , 'r' , encoding = 'utf-8' ) as f :
800
+ with open ("execution_instances /" + str (id ) + ".json" , 'r' , encoding = 'utf-8' ) as f :
801
801
content = f .read ()
802
802
service = json .loads (content .text ) # 加载服务信息
803
803
print ("name: " , service ["name" ])
Original file line number Diff line number Diff line change @@ -33,6 +33,8 @@ Bilibili/B站视频教程:
33
33
34
34
[ 如何爬需要输入验证码的网站] ( https://www.bilibili.com/video/BV18c411K7FH )
35
35
36
+ [ 如何切换IP池和使用隧道IP - 打开详情页采集案] ( https://www.bilibili.com/video/BV1KT411t79n )
37
+
36
38
[ 流程图执行逻辑解析 - 58同城房源描述采集案例] ( https://www.bilibili.com/video/BV1YL411z7uW )
37
39
38
40
[ MacOS系统设计和执行eBay网站爬虫任务教程] ( https://www.bilibili.com/video/BV1WL411h71r )
You can’t perform that action at this time.
0 commit comments