Browse Source

MACOS version

Naibo Wang 2 years ago
parent
commit
f54ebcd74a
33 changed files with 10 additions and 16 deletions
  1. BIN
      .DS_Store
  2. BIN
      ElectronJS/.DS_Store
  3. 1 1
      ElectronJS/config.json
  4. 6 5
      ElectronJS/package_macos.sh
  5. 1 1
      ElectronJS/server.js
  6. 0 1
      Releases/EasySpider_MacOS_all_arch/config.json
  7. 0 0
      Releases/EasySpider_MacOS_all_arch/execution_instances/0.json
  8. 0 1
      Releases/EasySpider_MacOS_all_arch/execution_instances/1.json
  9. 0 1
      Releases/EasySpider_MacOS_all_arch/execution_instances/2.json
  10. 2 2
      Releases/EasySpider_MacOS_all_arch/readme.txt
  11. 0 0
      Releases/EasySpider_MacOS_all_arch/tasks/11.json
  12. 0 0
      Releases/EasySpider_MacOS_all_arch/tasks/15.json
  13. 0 0
      Releases/EasySpider_MacOS_all_arch/tasks/16.json
  14. 0 0
      Releases/EasySpider_MacOS_all_arch/tasks/17.json
  15. 0 0
      Releases/EasySpider_MacOS_all_arch/tasks/19.json
  16. 0 0
      Releases/EasySpider_MacOS_all_arch/tasks/2.json
  17. 0 0
      Releases/EasySpider_MacOS_all_arch/tasks/20.json
  18. 0 0
      Releases/EasySpider_MacOS_all_arch/tasks/23.json
  19. 0 0
      Releases/EasySpider_MacOS_all_arch/tasks/25.json
  20. 0 0
      Releases/EasySpider_MacOS_all_arch/tasks/27.json
  21. 0 0
      Releases/EasySpider_MacOS_all_arch/tasks/28.json
  22. 0 0
      Releases/EasySpider_MacOS_all_arch/tasks/29.json
  23. 0 0
      Releases/EasySpider_MacOS_all_arch/tasks/30.json
  24. 0 0
      Releases/EasySpider_MacOS_all_arch/tasks/31.json
  25. 0 0
      Releases/EasySpider_MacOS_all_arch/tasks/32.json
  26. 0 1
      Releases/EasySpider_MacOS_all_arch/tasks/33.json
  27. 0 1
      Releases/EasySpider_MacOS_all_arch/tasks/34.json
  28. 0 1
      Releases/EasySpider_MacOS_all_arch/tasks/35.json
  29. 0 1
      Releases/EasySpider_MacOS_all_arch/tasks/36.json
  30. 0 0
      Releases/EasySpider_MacOS_all_arch/tasks/4.json
  31. 0 0
      Releases/EasySpider_MacOS_all_arch/tasks/5.json
  32. 0 0
      Releases/EasySpider_MacOS_all_arch/tasks/6.json
  33. 0 0
      Releases/EasySpider_MacOS_all_arch/tasks/7.json

BIN
.DS_Store


BIN
ElectronJS/.DS_Store


+ 1 - 1
ElectronJS/config.json

@@ -1 +1 @@
-{"webserver_address":"http://localhost","webserver_port":8074,"user_data_folder":"./user_data123","absolute_user_data_folder":"/Users/naibowang/Documents/EasySpider/ElectronJS/user_data123"}
+{"webserver_address":"http://localhost","webserver_port":8074,"user_data_folder":"./user_data","absolute_user_data_folder":"/Users/naibowang/Documents/EasySpider/ElectronJS/user_data"}

+ 6 - 5
ElectronJS/package_macos.sh

@@ -3,12 +3,13 @@
 # This script is used to build.md the package for Linux 64-bit.
 rm -rf out
 rm -r ../Releases/EasySpider_MacOS_all_arch/EasySpider.app
-npm run make
-unzip out/make/zip/darwin/x64/EasySpider-darwin-x64-* -d ../Releases/EasySpider_MacOS_all_arch/
+npm run package
+# unzip out/EasySpider-darwin-x64 -d ../Releases/EasySpider_MacOS_all_arch/
+mv out/EasySpider-darwin-x64/EasySpider.app ../Releases/EasySpider_MacOS_all_arch/
 rm ../Releases/EasySpider_MacOS_all_arch/EasySpider.app/Contents/Resources/app/VS_BuildTools.exe
 rm -r ../Releases/EasySpider_MacOS_all_arch/EasySpider.app/Contents/Resources/app/chrome_win64
-rm -r ../Releases/EasySpider_MacOS_all_arch/EasySpider.app/Contents/Resources/app/Data
+# rm -r ../Releases/EasySpider_MacOS_all_arch/EasySpider.app/Contents/Resources/app/Data
 rm -r ../Releases/EasySpider_MacOS_all_arch/EasySpider.app/Contents/Resources/app/.idea
-rm -r ../Releases/EasySpider_MacOS_all_arch/EasySpider.app/Contents/Resources/app/tasks
-rm -r ../Releases/EasySpider_MacOS_all_arch/EasySpider.app/Contents/Resources/app/execution_instances
+# rm -r ../Releases/EasySpider_MacOS_all_arch/EasySpider.app/Contents/Resources/app/tasks
+# rm -r ../Releases/EasySpider_MacOS_all_arch/EasySpider.app/Contents/Resources/app/execution_instances
 rm -r ../Releases/EasySpider_MacOS_all_arch/EasySpider.app/Contents/Resources/app/user_data

+ 1 - 1
ElectronJS/server.js

@@ -24,7 +24,7 @@ function compare(p){ //这是比较函数
 function getDir(){
     if(__dirname.indexOf("app") >= 0 && __dirname.indexOf("sources") >= 0){
         if(process.platform == "darwin"){
-            return path.join(__dirname,"../../../..");
+            return __dirname;
         } else {
             return path.join(__dirname,"../../..");
         }

+ 0 - 1
Releases/EasySpider_MacOS_all_arch/config.json

@@ -1 +0,0 @@
-{"webserver_address":"http://localhost","webserver_port":8074,"user_data_folder":"./user_data","absolute_user_data_folder":"/Users/naibowang/Documents/EasySpider/Releases/EasySpider_MacOS_all_arch/user_data"}

File diff suppressed because it is too large
+ 0 - 0
Releases/EasySpider_MacOS_all_arch/execution_instances/0.json


+ 0 - 1
Releases/EasySpider_MacOS_all_arch/execution_instances/1.json

@@ -1 +0,0 @@
-{"id":1,"name":"新web采集任务","url":"https://www.jd.com","links":"https://www.jd.com","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":[],"graph":[{"index":0,"id":0,"parentId":0,"type":-1,"option":0,"title":"root","sequence":[1],"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,"url":"https://www.jd.com","links":"https://www.jd.com","scrollType":0,"scrollCount":0}}]}

+ 0 - 1
Releases/EasySpider_MacOS_all_arch/execution_instances/2.json

@@ -1 +0,0 @@
-{"id":2,"name":"新web采集任务","url":"https://www.jd.com","links":"https://www.jd.com","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":[],"graph":[{"index":0,"id":0,"parentId":0,"type":-1,"option":0,"title":"root","sequence":[1],"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,"url":"https://www.jd.com","links":"https://www.jd.com","scrollType":0,"scrollCount":0}}]}

+ 2 - 2
Releases/EasySpider_MacOS_all_arch/readme.txt

@@ -2,7 +2,7 @@
 
 文件访问权限必须给,麦克风权限完全用不到,作者也不清楚为什么会需要麦克风,因此可以拒绝。
 
-可以从其他机器导入任务,只需要把其他机器的tasks文件夹里的.json文件放入此目录的tasks文件夹里即可。同理执行号文件可以通过复制execution_instances文件夹中的.json文件来导入。注意,两个文件夹里的.json文件只支持命名为大于0的数字。
+可以从其他机器导入任务,只需要打开此目录的EasySpider软件右键“显示包内容”,然后把其他机器的tasks文件夹里的.json文件放入Contents/Resources/app/tasks文件夹里即可。同理执行号文件可以通过复制execution_instances文件夹中的.json文件来导入。注意,两个文件夹里的.json文件只支持命名为大于0的数字。
 
 MacOS版本的软件有一个问题可能存在,即软件所调用的Chrome软件会在打开后经常性自动更新,但软件所依赖的Chromedriver版本并不会随着chrome自动更新,从而导致软件打不开chrome的问题。注意此版本的EasySpider使用的Chrome为111.0版本,如果使用过程中发现Chrome无法打开,请到Github Issues页面提issue,作者将会更新最新版本的软件供大家使用。
 
@@ -19,7 +19,7 @@ https://github.com/NaiboWang/EasySpider/wiki/MacOS-Guide
 File access permissions must be granted, microphone permissions are not necessary at all, and the author is not sure why microphone permissions are being requested, so they can be declined.
 
 
-Tasks can be imported from other machines by simply placing the .json files from the "tasks" folder of those machines into the "tasks" folder of this directory. Similarly, execution instance files can be imported by copying the .json files from the "execution_instances" folder. Note that only files named with a number greater than 0 are supported in both folders.
+You can import tasks from other machines by simply opening the EasySpider software in this directory, right-clicking "Show Package Contents", and then placing the .json files from the tasks folder in the Contents/Resources/app/tasks folder of the other machine. Similarly, execution ID files can be imported by copying the .json files from the execution_instances folder. Please note that the .json files in both folders only support names greater than 0.
 
 There is a potential issue with the software for MacOS, in that the Chrome software called by the software often updates automatically after opening, but the version of Chromedriver that the software relies on does not update automatically with Chrome, leading to the problem of being unable to open Chrome. Note that the EasySpider version used for Chrome is 111.0. If Chrome cannot be opened during use, please report the issue on the GitHub Issues page, and the author will update the latest version of the software for everyone to use.
 

File diff suppressed because it is too large
+ 0 - 0
Releases/EasySpider_MacOS_all_arch/tasks/11.json


File diff suppressed because it is too large
+ 0 - 0
Releases/EasySpider_MacOS_all_arch/tasks/15.json


File diff suppressed because it is too large
+ 0 - 0
Releases/EasySpider_MacOS_all_arch/tasks/16.json


File diff suppressed because it is too large
+ 0 - 0
Releases/EasySpider_MacOS_all_arch/tasks/17.json


File diff suppressed because it is too large
+ 0 - 0
Releases/EasySpider_MacOS_all_arch/tasks/19.json


File diff suppressed because it is too large
+ 0 - 0
Releases/EasySpider_MacOS_all_arch/tasks/2.json


File diff suppressed because it is too large
+ 0 - 0
Releases/EasySpider_MacOS_all_arch/tasks/20.json


File diff suppressed because it is too large
+ 0 - 0
Releases/EasySpider_MacOS_all_arch/tasks/23.json


File diff suppressed because it is too large
+ 0 - 0
Releases/EasySpider_MacOS_all_arch/tasks/25.json


File diff suppressed because it is too large
+ 0 - 0
Releases/EasySpider_MacOS_all_arch/tasks/27.json


File diff suppressed because it is too large
+ 0 - 0
Releases/EasySpider_MacOS_all_arch/tasks/28.json


File diff suppressed because it is too large
+ 0 - 0
Releases/EasySpider_MacOS_all_arch/tasks/29.json


File diff suppressed because it is too large
+ 0 - 0
Releases/EasySpider_MacOS_all_arch/tasks/30.json


File diff suppressed because it is too large
+ 0 - 0
Releases/EasySpider_MacOS_all_arch/tasks/31.json


File diff suppressed because it is too large
+ 0 - 0
Releases/EasySpider_MacOS_all_arch/tasks/32.json


+ 0 - 1
Releases/EasySpider_MacOS_all_arch/tasks/33.json

@@ -1 +0,0 @@
-{"id":33,"name":"JD","url":"https://www.jd.com","links":"https://www.jd.com","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"},{"id":1,"name":"inputText_1","nodeName":"输入文字","nodeId":2,"desc":"要输入的文本,如京东搜索框输入:电脑","type":"string","exampleValue":"123","value":"123"}],"outputParameters":[],"graph":[{"index":0,"id":0,"parentId":0,"type":-1,"option":0,"title":"root","sequence":[1,2,3],"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,"url":"https://www.jd.com","links":"https://www.jd.com","scrollType":0,"scrollCount":0}},{"id":2,"index":2,"parentId":0,"type":0,"option":4,"title":"输入文字","sequence":[],"isInLoop":false,"position":1,"parameters":{"history":4,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"key\"]","wait":0,"value":"123"}},{"id":3,"index":3,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":2,"parameters":{"history":4,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"search-btn\"]/i[1]","wait":0,"scrollType":0,"scrollCount":0,"paras":[]}}]}

+ 0 - 1
Releases/EasySpider_MacOS_all_arch/tasks/34.json

@@ -1 +0,0 @@
-{"id":34,"name":"新web采集任务","url":"https://www.jd.com","links":"https://www.jd.com","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":[],"graph":[{"index":0,"id":0,"parentId":0,"type":-1,"option":0,"title":"root","sequence":[1],"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,"url":"https://www.jd.com","links":"https://www.jd.com","scrollType":0,"scrollCount":0}}]}

+ 0 - 1
Releases/EasySpider_MacOS_all_arch/tasks/35.json

@@ -1 +0,0 @@
-{"id":35,"name":"新web采集任务","url":"https://www.jd.com","links":"https://www.jd.com","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"},{"id":1,"name":"inputText_1","nodeName":"输入文字","nodeId":2,"desc":"要输入的文本,如京东搜索框输入:电脑","type":"string","exampleValue":"赛啃老","value":"赛啃老"}],"outputParameters":[],"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,"url":"https://www.jd.com","links":"https://www.jd.com","scrollType":0,"scrollCount":0}},{"id":2,"index":2,"parentId":0,"type":0,"option":4,"title":"输入文字","sequence":[],"isInLoop":false,"position":1,"parameters":{"history":4,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"key\"]","wait":0,"value":"赛啃老"}}]}

+ 0 - 1
Releases/EasySpider_MacOS_all_arch/tasks/36.json

@@ -1 +0,0 @@
-{"id":36,"name":"新web采集任务","url":"https://www.jd.com","links":"https://www.jd.com","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":[],"graph":[{"index":0,"id":0,"parentId":0,"type":-1,"option":0,"title":"root","sequence":[1],"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,"url":"https://www.jd.com","links":"https://www.jd.com","scrollType":0,"scrollCount":0}}]}

File diff suppressed because it is too large
+ 0 - 0
Releases/EasySpider_MacOS_all_arch/tasks/4.json


File diff suppressed because it is too large
+ 0 - 0
Releases/EasySpider_MacOS_all_arch/tasks/5.json


File diff suppressed because it is too large
+ 0 - 0
Releases/EasySpider_MacOS_all_arch/tasks/6.json


File diff suppressed because it is too large
+ 0 - 0
Releases/EasySpider_MacOS_all_arch/tasks/7.json


Some files were not shown because too many files changed in this diff