Version Update

This commit is contained in:
naibo 2023-05-21 20:57:35 +08:00
parent b5e5aac505
commit f4a8c7aed9
4 changed files with 14 additions and 3 deletions

View File

@ -1,3 +1,3 @@
- 删除chrome的install文件夹
- 修改logic.js及logic_CN.js ElectronJS/package.jsonManifestv3/package.jsoneasyspider_executestage.py中的版本号
- 修改logic.js及logic_CN.js ElectronJS/package.jsonmanifest_v3/package.jsoneasyspider_executestage.py中的版本号
- 更新最新的tasks文件夹

View File

@ -12,7 +12,7 @@
"console": "integratedTerminal",
"justMyCode": true,
// "args": ["--id", "38", "--read_type", "local", "--headless", "1"]
"args": ["--id", "23", "--headless", "0"]
"args": ["--id", "26", "--headless", "0"]
}
]
}

View File

@ -996,6 +996,17 @@ if __name__ == '__main__':
service = json.loads(content) # 加载服务信息
print("name: ", service["name"])
procedure = service["graph"] # 程序执行流程
try:
if service["version"] != c.version:
print("版本不一致,请使用" + service["version"] + "版本的EasySpider运行该任务")
print("Version not match, please use EasySpider " + service["version"] + " to run this task")
browser.quit()
sys.exit()
except:
print("版本不一致请使用v0.2.0版本的EasySpider运行该任务")
print("Version not match, please use EasySpider v0.2.0 to run this task")
browser.quit()
sys.exit()
links = list(filter(isnull, service["links"].split("\n"))) # 要执行的link的列表
OUTPUT = [] # 采集的数据
OUTPUT.append([]) # 添加表头

View File

@ -1,6 +1,6 @@
{
"name": "EasySpider",
"version": "0.2.0",
"version": "0.3.0",
"type": "module",
"scripts": {
"build": "rollup -c",