From 3a3edd35585772268450791384cc6575043fc0a9 Mon Sep 17 00:00:00 2001 From: naibo Date: Tue, 5 Sep 2023 16:03:33 +0800 Subject: [PATCH] Update Example of Exec and Eval --- ...务后Chrome弹出后立马退出).txt | 6 +- .../execution_instances/39.json | 1 + .../execution_instances/40.json | 1 + .../execution_instances/41.json | 1 + .../execution_instances/42.json | 1 + .../execution_instances/43.json | 1 + .../execution_instances/44.json | 1 + .../execution_instances/45.json | 1 + .../execution_instances/46.json | 1 + .../execution_instances/47.json | 1 + .../execution_instances/48.json | 1 + .../execution_instances/49.json | 1 + .../execution_instances/50.json | 1 + .temp_to_pub/EasySpider_windows_x64/info.log | 706 ++++++++++++++++++ .../EasySpider_windows_x64/tasks/218.json | 2 +- .../EasySpider_windows_x64/tasks/220.json | 1 + ElectronJS/src/taskGrid/FlowChart.html | 6 +- ElectronJS/src/taskGrid/FlowChart_CN.html | 7 +- Examples/Exec and Eval.json | 1 + 19 files changed, 735 insertions(+), 6 deletions(-) create mode 100644 .temp_to_pub/EasySpider_windows_x64/execution_instances/39.json create mode 100644 .temp_to_pub/EasySpider_windows_x64/execution_instances/40.json create mode 100644 .temp_to_pub/EasySpider_windows_x64/execution_instances/41.json create mode 100644 .temp_to_pub/EasySpider_windows_x64/execution_instances/42.json create mode 100644 .temp_to_pub/EasySpider_windows_x64/execution_instances/43.json create mode 100644 .temp_to_pub/EasySpider_windows_x64/execution_instances/44.json create mode 100644 .temp_to_pub/EasySpider_windows_x64/execution_instances/45.json create mode 100644 .temp_to_pub/EasySpider_windows_x64/execution_instances/46.json create mode 100644 .temp_to_pub/EasySpider_windows_x64/execution_instances/47.json create mode 100644 .temp_to_pub/EasySpider_windows_x64/execution_instances/48.json create mode 100644 .temp_to_pub/EasySpider_windows_x64/execution_instances/49.json create mode 100644 .temp_to_pub/EasySpider_windows_x64/execution_instances/50.json create mode 100644 .temp_to_pub/EasySpider_windows_x64/info.log create mode 100644 .temp_to_pub/EasySpider_windows_x64/tasks/220.json create mode 100644 Examples/Exec and Eval.json diff --git a/.temp_to_pub/EasySpider_MacOS_all_arch/浏览器闪退解决方案(点击设计任务后Chrome弹出后立马退出).txt b/.temp_to_pub/EasySpider_MacOS_all_arch/浏览器闪退解决方案(点击设计任务后Chrome弹出后立马退出).txt index 83eb41b..5e04a2c 100644 --- a/.temp_to_pub/EasySpider_MacOS_all_arch/浏览器闪退解决方案(点击设计任务后Chrome弹出后立马退出).txt +++ b/.temp_to_pub/EasySpider_MacOS_all_arch/浏览器闪退解决方案(点击设计任务后Chrome弹出后立马退出).txt @@ -1,9 +1,9 @@ 如果点击"使用浏览器设计"按钮后Chrome弹出并闪退,需要按照以下流程操作: -MacOS版本的软件有一个问题可能存在,即软件所调用的Chrome软件会在打开后经常性自动更新,但软件所依赖的Chromedriver版本并不会随着chrome自动更新,从而导致软件打不开chrome的问题。 -检查Chrome版本的方式为:进入EasySpider软件内部,即右键软件“显示包内容”,然后进入Contents/Resources/app文件夹内,手动双击打开chrome_mac64软件打开chrome,然后打开设置->关于Chrome来查看Chrome版本是否和手动打开chromedriver_mac64后显示的版本相同。 +MacOS版本的软件有一个问题可能存在,即软件所调用的Chrome软件会在打开后经常性自动更新,但软件所依赖的Chromedriver版本并不会随着Chrome自动更新,从而导致软件打不开Chrome的问题。 +检查Chrome版本的方式为:进入EasySpider软件内部,即右键软件“显示包内容”,然后进入Contents/Resources/app文件夹内,手动双击打开chrome_mac64软件打开Chrome,然后打开设置->关于Chrome来查看Chrome版本是否和手动打开chromedriver_mac64后显示的版本相同。 -如果不是,请自行到以下网址下载对应自己当前chrome版本的macOS版本的chromedriver:https://googlechromelabs.github.io/chrome-for-testing,并将chromedriver文件放在上面提到的Contents/Resources/app文件夹内,更名并替换掉“chromedriver_mac64”文件即可使软件恢复正常使用。 +如果不是,请自行到以下网址下载对应自己当前Chrome版本的macOS版本的Chromedriver:https://googlechromelabs.github.io/chrome-for-testing,并将chromedriver文件放在上面提到的Contents/Resources/app文件夹内,更名并替换掉“chromedriver_mac64”文件即可使软件恢复正常使用。 如果使用过程中发现其他问题,请到Github Issues页面提issue。 diff --git a/.temp_to_pub/EasySpider_windows_x64/execution_instances/39.json b/.temp_to_pub/EasySpider_windows_x64/execution_instances/39.json new file mode 100644 index 0000000..6b08c16 --- /dev/null +++ b/.temp_to_pub/EasySpider_windows_x64/execution_instances/39.json @@ -0,0 +1 @@ +{"id":39,"name":"NUS","url":"https://reboks.nus.edu.sg/","links":"https://reboks.nus.edu.sg/","create_time":"9/5/2023, 12:28:18 PM","update_time":"9/5/2023, 1:01:35 PM","version":"0.5.0","saveThreshold":10,"cloudflare":0,"environment":0,"maxViewLength":15,"recordLog":1,"outputFormat":"xlsx","saveName":"current_time","inputExcel":"","startFromExit":0,"containJudge":false,"desc":"https://reboks.nus.edu.sg/","inputParameters":[{"id":0,"name":"urlList_0","nodeId":1,"nodeName":"打开网页","value":"https://reboks.nus.edu.sg/","desc":"要采集的网址列表,多行以\\n分开","type":"text","exampleValue":"https://reboks.nus.edu.sg/"},{"id":1,"name":"inputText_1","nodeName":"输入文字","nodeId":3,"desc":"要输入的文本,如京东搜索框输入:电脑","type":"text","exampleValue":"nusstu\\e0546263","value":"nusstu\\e0546263"},{"id":2,"name":"inputText_2","nodeName":"输入文字","nodeId":4,"desc":"要输入的文本,如京东搜索框输入:电脑","type":"text","exampleValue":"Qw982311099.","value":"Qw982311099."},{"id":3,"name":"urlList_3","nodeId":16,"nodeName":"打开网页","value":"https://reboks.nus.edu.sg/nus_public_web/public/facilities/view/activity/58/venue/15?time_from=1694016000","desc":"要采集的网址列表,多行以\\n分开","type":"text","exampleValue":"https://reboks.nus.edu.sg/nus_public_web/public/facilities/view/activity/58/venue/15?time_from=1694016000"}],"outputParameters":[{"id":0,"name":"自定义操作","desc":"自定义操作返回的数据","type":"text","recordASField":0,"exampleValue":""}],"graph":[{"index":0,"id":0,"parentId":0,"type":-1,"option":0,"title":"root","sequence":[1,2,3,4,5,16,17,18,19],"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":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,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"url":"https://reboks.nus.edu.sg/","links":"https://reboks.nus.edu.sg/","maxWaitTime":10,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"cookies":""}},{"id":2,"index":2,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":1,"parameters":{"history":4,"tabIndex":-1,"useLoop":false,"xpath":"//*[contains(@class, \"btn-facebook\")]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[1]/div[1]/div[1]/div[5]/div[2]/div[1]/fieldset[1]/div[1]/div[1]/div[2]/a[1]","//a[contains(., '')]","//A[@class='btn btn-block btn-facebook']","/html/body/div[last()-3]/div/div/div[last()-2]/div/div/fieldset/div/div/div[last()-1]/a[last()-1]"]}},{"id":3,"index":3,"parentId":0,"type":0,"option":4,"title":"输入文字","sequence":[],"isInLoop":false,"position":2,"parameters":{"history":5,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"userNameInput\"]","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"value":"nusstu\\e0546263","index":0,"allXPaths":["/html/body/div[2]/div[2]/div[1]/div[2]/div[1]/div[1]/form[1]/div[2]/div[1]/input[1]","//input[contains(., '')]","id(\"userNameInput\")","//INPUT[@class='text fullWidth']","//INPUT[@name='UserName']","/html/body/div[last()-3]/div/div[last()-1]/div[last()-1]/div/div/form/div/div[last()-3]/input"]}},{"id":4,"index":4,"parentId":0,"type":0,"option":4,"title":"输入文字","sequence":[],"isInLoop":false,"position":3,"parameters":{"history":5,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"passwordInput\"]","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"value":"Qw982311099.","index":0,"allXPaths":["/html/body/div[2]/div[2]/div[1]/div[2]/div[1]/div[1]/form[1]/div[2]/div[2]/input[1]","//input[contains(., '')]","id(\"passwordInput\")","//INPUT[@class='text fullWidth']","//INPUT[@name='Password']","/html/body/div[last()-3]/div/div[last()-1]/div[last()-1]/div/div/form/div/div[last()-2]/input"]}},{"id":5,"index":5,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":4,"parameters":{"history":5,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"submitButton\"]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[2]/div[1]/div[2]/div[1]/div[1]/form[1]/div[2]/div[4]/span[1]","//span[contains(., 'Sign in')]","id(\"submitButton\")","//SPAN[@class='submit']","/html/body/div[last()-3]/div/div[last()-1]/div[last()-1]/div/div/form/div/div/span"]}},{"id":-1,"index":6,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":5,"parameters":{"history":5,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"submitButton\"]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[2]/div[1]/div[2]/div[1]/div[1]/form[1]/div[2]/div[4]/span[1]","//span[contains(., 'Sign in')]","id(\"submitButton\")","//SPAN[@class='submit']","/html/body/div[last()-3]/div/div[last()-1]/div[last()-1]/div/div/form/div/div/span"]}},{"id":-1,"index":7,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":5,"parameters":{"history":6,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"bookfacility\"]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[1]/div[1]/div[3]/ul[1]/li[5]/a[1]","//a[contains(., 'Book Facil')]","id(\"bookfacility\")","//A[@class='parent']","//A[@name='bookfacility']","/html/body/div[last()-4]/div/div[last()-1]/div[last()-5]/ul/li[last()-4]/a"]}},{"id":-1,"index":8,"parentId":0,"type":0,"option":6,"title":"切换下拉选项","sequence":[],"isInLoop":false,"position":6,"parameters":{"history":7,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"activity_filter\"]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"optionMode":0,"optionValue":"Badminton","index":0,"allXPaths":["/html/body/div[2]/div[1]/div[1]/section[3]/div[1]/form[1]/fieldset[1]/select[1]","//select[contains(., 'Select an')]","id(\"activity_filter\")","//SELECT[@class='input-xlarge ']","//SELECT[@name='activity_filter']","/html/body/div[last()-5]/div/div[last()-1]/section/div/form/fieldset[last()-3]/select"]}},{"id":-1,"index":9,"parentId":0,"type":0,"option":6,"title":"切换下拉选项","sequence":[],"isInLoop":false,"position":7,"parameters":{"history":7,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"activity_filter\"]","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"optionMode":"1","optionValue":1,"index":0,"allXPaths":["/html/body/div[2]/div[1]/div[1]/section[3]/div[1]/form[1]/fieldset[1]/select[1]","//select[contains(., 'Select an')]","id(\"activity_filter\")","//SELECT[@class='input-xlarge ']","//SELECT[@name='activity_filter']","/html/body/div[last()-5]/div/div[last()-1]/section/div/form/fieldset[last()-3]/select"]}},{"id":-1,"index":10,"parentId":0,"type":0,"option":6,"title":"切换下拉选项","sequence":[],"isInLoop":false,"position":7,"parameters":{"history":7,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"venue_filter\"]","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"optionMode":"1","optionValue":"1","index":0,"allXPaths":["/html/body/div[2]/div[1]/div[1]/section[3]/div[1]/form[1]/fieldset[2]/select[1]","//select[contains(., 'Select a v')]","id(\"venue_filter\")","//SELECT[@class='input-xlarge ']","//SELECT[@name='venue_filter']","/html/body/div[last()-5]/div/div[last()-1]/section/div/form/fieldset[last()-2]/select"]}},{"id":-1,"index":11,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":8,"parameters":{"history":7,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"date_filter\"]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[1]/div[1]/section[3]/div[1]/form[1]/fieldset[3]/input[1]","//input[contains(., '')]","id(\"date_filter\")","//INPUT[@class='chosen-container datepicker hasDatepicker']","//INPUT[@name='date_filter']","/html/body/div[last()-5]/div/div[last()-1]/section/div/form/fieldset[last()-1]/input"]}},{"id":-1,"index":12,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":9,"parameters":{"history":7,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"search\"]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[1]/div[1]/section[3]/div[1]/form[1]/fieldset[4]/input[1]","//input[contains(., '')]","id(\"search\")","//INPUT[@class='btn btn-filter-search']","//INPUT[@name='search']","/html/body/div[last()-5]/div/div[last()-1]/section/div/form/fieldset/input"]}},{"id":-1,"index":13,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":10,"parameters":{"history":8,"tabIndex":-1,"useLoop":false,"xpath":"//*[contains(@class, \"timeslot-container\")]/div[5]/div[1]/div[7]/label[1]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[1]/div[1]/section[3]/div[4]/div[1]/form[1]/div[1]/div[5]/div[1]/div[7]/label[1]","//label[contains(., '01:00 PM')]","/html/body/div[last()-5]/div/div[last()-1]/section/div/div/form/div[last()-1]/div[last()-1]/div/div[last()-7]/label"]}},{"id":-1,"index":14,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":11,"parameters":{"history":8,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"paynow\"]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[1]/div[1]/section[3]/div[4]/div[1]/form[1]/div[2]/div[1]/input[1]","//input[contains(., '')]","id(\"paynow\")","//INPUT[@class='btn btn-flat blue last-child']","//INPUT[@name='cart']","/html/body/div[last()-5]/div/div[last()-1]/section/div/div/form/div/div/input"]}},{"id":-1,"index":15,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":12,"parameters":{"history":5,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"bookfacility\"]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[1]/div[1]/div[3]/ul[1]/li[5]/a[1]","//a[contains(., 'Book Facil')]","id(\"bookfacility\")","//A[@class='parent']","//A[@name='bookfacility']","/html/body/div[last()-4]/div/div[last()-1]/div[last()-5]/ul/li[last()-4]/a"]}},{"id":6,"index":16,"parentId":0,"type":0,"option":1,"title":"打开网页","sequence":[],"isInLoop":false,"position":5,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"url":"about:blank","links":"https://reboks.nus.edu.sg/nus_public_web/public/facilities/view/activity/58/venue/15?time_from=1694016000","maxWaitTime":10,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"cookies":""}},{"id":7,"index":17,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":6,"parameters":{"history":6,"tabIndex":-1,"useLoop":false,"xpath":"//*[contains(@class, \"timeslot-container\")]/div[1]/div[1]/div[1]/label[1]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[1]/div[1]/section[3]/div[4]/div[1]/form[1]/div[1]/div[1]/div[1]/div[1]/label[1]","//label[contains(., '07:00 AM')]","/html/body/div[last()-5]/div/div[last()-1]/section/div/div/form/div[last()-1]/div[last()-5]/div/div[last()-13]/label"]}},{"id":8,"index":18,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":7,"parameters":{"history":6,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"paynow\"]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[1]/div[1]/section[3]/div[4]/div[1]/form[1]/div[2]/div[1]/input[1]","//input[contains(., '')]","id(\"paynow\")","//INPUT[@class='btn btn-flat blue last-child']","//INPUT[@name='cart']","/html/body/div[last()-5]/div/div[last()-1]/section/div/div/form/div/div/input"]}},{"id":9,"index":19,"parentId":0,"type":0,"option":5,"title":"自定义操作","sequence":[],"isInLoop":false,"position":8,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"clear":0,"codeMode":"5","code":"from selenium.webdriver.support.ui import WebDriverWait\nfrom selenium.webdriver.support import expected_conditions as EC\n\ntry:\n # 等待警告出现并获取警告对话框\n WebDriverWait(self.browser, 5).until(EC.alert_is_present())\n\n # 切换到警告并接受\n alert = self.browser.switch_to.alert\n alert.accept()\nexcept Exception as e:\n print(e)","waitTime":0,"recordASField":0,"paraType":"text"}}]} \ No newline at end of file diff --git a/.temp_to_pub/EasySpider_windows_x64/execution_instances/40.json b/.temp_to_pub/EasySpider_windows_x64/execution_instances/40.json new file mode 100644 index 0000000..f43470a --- /dev/null +++ b/.temp_to_pub/EasySpider_windows_x64/execution_instances/40.json @@ -0,0 +1 @@ +{"id":40,"name":"NUS","url":"https://reboks.nus.edu.sg/","links":"https://reboks.nus.edu.sg/","create_time":"9/5/2023, 12:28:18 PM","update_time":"9/5/2023, 1:02:52 PM","version":"0.5.0","saveThreshold":10,"cloudflare":0,"environment":0,"maxViewLength":15,"recordLog":1,"outputFormat":"xlsx","saveName":"current_time","inputExcel":"","startFromExit":0,"containJudge":false,"desc":"https://reboks.nus.edu.sg/","inputParameters":[{"id":0,"name":"urlList_0","nodeId":1,"nodeName":"打开网页","value":"https://reboks.nus.edu.sg/","desc":"要采集的网址列表,多行以\\n分开","type":"text","exampleValue":"https://reboks.nus.edu.sg/"},{"id":1,"name":"inputText_1","nodeName":"输入文字","nodeId":3,"desc":"要输入的文本,如京东搜索框输入:电脑","type":"text","exampleValue":"nusstu\\e0546263","value":"nusstu\\e0546263"},{"id":2,"name":"inputText_2","nodeName":"输入文字","nodeId":4,"desc":"要输入的文本,如京东搜索框输入:电脑","type":"text","exampleValue":"Qw982311099.","value":"Qw982311099."},{"id":3,"name":"urlList_3","nodeId":16,"nodeName":"打开网页","value":"https://reboks.nus.edu.sg/nus_public_web/public/facilities/view/activity/58/venue/15?time_from=1694016000","desc":"要采集的网址列表,多行以\\n分开","type":"text","exampleValue":"https://reboks.nus.edu.sg/nus_public_web/public/facilities/view/activity/58/venue/15?time_from=1694016000"}],"outputParameters":[{"id":0,"name":"自定义操作","desc":"自定义操作返回的数据","type":"text","recordASField":0,"exampleValue":""}],"graph":[{"index":0,"id":0,"parentId":0,"type":-1,"option":0,"title":"root","sequence":[1,2,3,4,5,16,17,18,19],"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":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,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"url":"https://reboks.nus.edu.sg/","links":"https://reboks.nus.edu.sg/","maxWaitTime":10,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"cookies":""}},{"id":2,"index":2,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":1,"parameters":{"history":4,"tabIndex":-1,"useLoop":false,"xpath":"//*[contains(@class, \"btn-facebook\")]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[1]/div[1]/div[1]/div[5]/div[2]/div[1]/fieldset[1]/div[1]/div[1]/div[2]/a[1]","//a[contains(., '')]","//A[@class='btn btn-block btn-facebook']","/html/body/div[last()-3]/div/div/div[last()-2]/div/div/fieldset/div/div/div[last()-1]/a[last()-1]"]}},{"id":3,"index":3,"parentId":0,"type":0,"option":4,"title":"输入文字","sequence":[],"isInLoop":false,"position":2,"parameters":{"history":5,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"userNameInput\"]","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"value":"nusstu\\e0546263","index":0,"allXPaths":["/html/body/div[2]/div[2]/div[1]/div[2]/div[1]/div[1]/form[1]/div[2]/div[1]/input[1]","//input[contains(., '')]","id(\"userNameInput\")","//INPUT[@class='text fullWidth']","//INPUT[@name='UserName']","/html/body/div[last()-3]/div/div[last()-1]/div[last()-1]/div/div/form/div/div[last()-3]/input"]}},{"id":4,"index":4,"parentId":0,"type":0,"option":4,"title":"输入文字","sequence":[],"isInLoop":false,"position":3,"parameters":{"history":5,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"passwordInput\"]","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"value":"Qw982311099.","index":0,"allXPaths":["/html/body/div[2]/div[2]/div[1]/div[2]/div[1]/div[1]/form[1]/div[2]/div[2]/input[1]","//input[contains(., '')]","id(\"passwordInput\")","//INPUT[@class='text fullWidth']","//INPUT[@name='Password']","/html/body/div[last()-3]/div/div[last()-1]/div[last()-1]/div/div/form/div/div[last()-2]/input"]}},{"id":5,"index":5,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":4,"parameters":{"history":5,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"submitButton\"]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[2]/div[1]/div[2]/div[1]/div[1]/form[1]/div[2]/div[4]/span[1]","//span[contains(., 'Sign in')]","id(\"submitButton\")","//SPAN[@class='submit']","/html/body/div[last()-3]/div/div[last()-1]/div[last()-1]/div/div/form/div/div/span"]}},{"id":-1,"index":6,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":5,"parameters":{"history":5,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"submitButton\"]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[2]/div[1]/div[2]/div[1]/div[1]/form[1]/div[2]/div[4]/span[1]","//span[contains(., 'Sign in')]","id(\"submitButton\")","//SPAN[@class='submit']","/html/body/div[last()-3]/div/div[last()-1]/div[last()-1]/div/div/form/div/div/span"]}},{"id":-1,"index":7,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":5,"parameters":{"history":6,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"bookfacility\"]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[1]/div[1]/div[3]/ul[1]/li[5]/a[1]","//a[contains(., 'Book Facil')]","id(\"bookfacility\")","//A[@class='parent']","//A[@name='bookfacility']","/html/body/div[last()-4]/div/div[last()-1]/div[last()-5]/ul/li[last()-4]/a"]}},{"id":-1,"index":8,"parentId":0,"type":0,"option":6,"title":"切换下拉选项","sequence":[],"isInLoop":false,"position":6,"parameters":{"history":7,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"activity_filter\"]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"optionMode":0,"optionValue":"Badminton","index":0,"allXPaths":["/html/body/div[2]/div[1]/div[1]/section[3]/div[1]/form[1]/fieldset[1]/select[1]","//select[contains(., 'Select an')]","id(\"activity_filter\")","//SELECT[@class='input-xlarge ']","//SELECT[@name='activity_filter']","/html/body/div[last()-5]/div/div[last()-1]/section/div/form/fieldset[last()-3]/select"]}},{"id":-1,"index":9,"parentId":0,"type":0,"option":6,"title":"切换下拉选项","sequence":[],"isInLoop":false,"position":7,"parameters":{"history":7,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"activity_filter\"]","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"optionMode":"1","optionValue":1,"index":0,"allXPaths":["/html/body/div[2]/div[1]/div[1]/section[3]/div[1]/form[1]/fieldset[1]/select[1]","//select[contains(., 'Select an')]","id(\"activity_filter\")","//SELECT[@class='input-xlarge ']","//SELECT[@name='activity_filter']","/html/body/div[last()-5]/div/div[last()-1]/section/div/form/fieldset[last()-3]/select"]}},{"id":-1,"index":10,"parentId":0,"type":0,"option":6,"title":"切换下拉选项","sequence":[],"isInLoop":false,"position":7,"parameters":{"history":7,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"venue_filter\"]","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"optionMode":"1","optionValue":"1","index":0,"allXPaths":["/html/body/div[2]/div[1]/div[1]/section[3]/div[1]/form[1]/fieldset[2]/select[1]","//select[contains(., 'Select a v')]","id(\"venue_filter\")","//SELECT[@class='input-xlarge ']","//SELECT[@name='venue_filter']","/html/body/div[last()-5]/div/div[last()-1]/section/div/form/fieldset[last()-2]/select"]}},{"id":-1,"index":11,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":8,"parameters":{"history":7,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"date_filter\"]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[1]/div[1]/section[3]/div[1]/form[1]/fieldset[3]/input[1]","//input[contains(., '')]","id(\"date_filter\")","//INPUT[@class='chosen-container datepicker hasDatepicker']","//INPUT[@name='date_filter']","/html/body/div[last()-5]/div/div[last()-1]/section/div/form/fieldset[last()-1]/input"]}},{"id":-1,"index":12,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":9,"parameters":{"history":7,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"search\"]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[1]/div[1]/section[3]/div[1]/form[1]/fieldset[4]/input[1]","//input[contains(., '')]","id(\"search\")","//INPUT[@class='btn btn-filter-search']","//INPUT[@name='search']","/html/body/div[last()-5]/div/div[last()-1]/section/div/form/fieldset/input"]}},{"id":-1,"index":13,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":10,"parameters":{"history":8,"tabIndex":-1,"useLoop":false,"xpath":"//*[contains(@class, \"timeslot-container\")]/div[5]/div[1]/div[7]/label[1]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[1]/div[1]/section[3]/div[4]/div[1]/form[1]/div[1]/div[5]/div[1]/div[7]/label[1]","//label[contains(., '01:00 PM')]","/html/body/div[last()-5]/div/div[last()-1]/section/div/div/form/div[last()-1]/div[last()-1]/div/div[last()-7]/label"]}},{"id":-1,"index":14,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":11,"parameters":{"history":8,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"paynow\"]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[1]/div[1]/section[3]/div[4]/div[1]/form[1]/div[2]/div[1]/input[1]","//input[contains(., '')]","id(\"paynow\")","//INPUT[@class='btn btn-flat blue last-child']","//INPUT[@name='cart']","/html/body/div[last()-5]/div/div[last()-1]/section/div/div/form/div/div/input"]}},{"id":-1,"index":15,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":12,"parameters":{"history":5,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"bookfacility\"]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[1]/div[1]/div[3]/ul[1]/li[5]/a[1]","//a[contains(., 'Book Facil')]","id(\"bookfacility\")","//A[@class='parent']","//A[@name='bookfacility']","/html/body/div[last()-4]/div/div[last()-1]/div[last()-5]/ul/li[last()-4]/a"]}},{"id":6,"index":16,"parentId":0,"type":0,"option":1,"title":"打开网页","sequence":[],"isInLoop":false,"position":5,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"url":"about:blank","links":"https://reboks.nus.edu.sg/nus_public_web/public/facilities/view/activity/58/venue/15?time_from=1694016000","maxWaitTime":10,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"cookies":""}},{"id":7,"index":17,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":6,"parameters":{"history":6,"tabIndex":-1,"useLoop":false,"xpath":"//*[contains(@class, \"timeslot-container\")]/div[1]/div[1]/div[1]/label[1]","iframe":false,"wait":4,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[1]/div[1]/section[3]/div[4]/div[1]/form[1]/div[1]/div[1]/div[1]/div[1]/label[1]","//label[contains(., '07:00 AM')]","/html/body/div[last()-5]/div/div[last()-1]/section/div/div/form/div[last()-1]/div[last()-5]/div/div[last()-13]/label"]}},{"id":8,"index":18,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":7,"parameters":{"history":6,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"paynow\"]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[1]/div[1]/section[3]/div[4]/div[1]/form[1]/div[2]/div[1]/input[1]","//input[contains(., '')]","id(\"paynow\")","//INPUT[@class='btn btn-flat blue last-child']","//INPUT[@name='cart']","/html/body/div[last()-5]/div/div[last()-1]/section/div/div/form/div/div/input"]}},{"id":9,"index":19,"parentId":0,"type":0,"option":5,"title":"自定义操作","sequence":[],"isInLoop":false,"position":8,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"clear":0,"codeMode":"5","code":"from selenium.webdriver.support.ui import WebDriverWait\nfrom selenium.webdriver.support import expected_conditions as EC\n\ntry:\n # 等待警告出现并获取警告对话框\n WebDriverWait(self.browser, 5).until(EC.alert_is_present())\n\n # 切换到警告并接受\n alert = self.browser.switch_to.alert\n alert.accept()\nexcept Exception as e:\n print(e)","waitTime":0,"recordASField":0,"paraType":"text"}}]} \ No newline at end of file diff --git a/.temp_to_pub/EasySpider_windows_x64/execution_instances/41.json b/.temp_to_pub/EasySpider_windows_x64/execution_instances/41.json new file mode 100644 index 0000000..bd5fbf4 --- /dev/null +++ b/.temp_to_pub/EasySpider_windows_x64/execution_instances/41.json @@ -0,0 +1 @@ +{"id":41,"name":"NUS","url":"https://reboks.nus.edu.sg/","links":"https://reboks.nus.edu.sg/","create_time":"9/5/2023, 12:28:18 PM","update_time":"9/5/2023, 1:03:50 PM","version":"0.5.0","saveThreshold":10,"cloudflare":0,"environment":0,"maxViewLength":15,"recordLog":1,"outputFormat":"xlsx","saveName":"current_time","inputExcel":"","startFromExit":0,"containJudge":false,"desc":"https://reboks.nus.edu.sg/","inputParameters":[{"id":0,"name":"urlList_0","nodeId":1,"nodeName":"打开网页","value":"https://reboks.nus.edu.sg/","desc":"要采集的网址列表,多行以\\n分开","type":"text","exampleValue":"https://reboks.nus.edu.sg/"},{"id":1,"name":"inputText_1","nodeName":"输入文字","nodeId":3,"desc":"要输入的文本,如京东搜索框输入:电脑","type":"text","exampleValue":"nusstu\\e0546263","value":"nusstu\\e0546263"},{"id":2,"name":"inputText_2","nodeName":"输入文字","nodeId":4,"desc":"要输入的文本,如京东搜索框输入:电脑","type":"text","exampleValue":"Qw982311099.","value":"Qw982311099."},{"id":3,"name":"urlList_3","nodeId":16,"nodeName":"打开网页","value":"https://reboks.nus.edu.sg/nus_public_web/public/facilities/view/activity/58/venue/15?time_from=1694016000","desc":"要采集的网址列表,多行以\\n分开","type":"text","exampleValue":"https://reboks.nus.edu.sg/nus_public_web/public/facilities/view/activity/58/venue/15?time_from=1694016000"}],"outputParameters":[{"id":0,"name":"自定义操作","desc":"自定义操作返回的数据","type":"text","recordASField":0,"exampleValue":""}],"graph":[{"index":0,"id":0,"parentId":0,"type":-1,"option":0,"title":"root","sequence":[1,2,3,4,5,16,17,18,19],"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":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,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"url":"https://reboks.nus.edu.sg/","links":"https://reboks.nus.edu.sg/","maxWaitTime":10,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"cookies":""}},{"id":2,"index":2,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":1,"parameters":{"history":4,"tabIndex":-1,"useLoop":false,"xpath":"//*[contains(@class, \"btn-facebook\")]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[1]/div[1]/div[1]/div[5]/div[2]/div[1]/fieldset[1]/div[1]/div[1]/div[2]/a[1]","//a[contains(., '')]","//A[@class='btn btn-block btn-facebook']","/html/body/div[last()-3]/div/div/div[last()-2]/div/div/fieldset/div/div/div[last()-1]/a[last()-1]"]}},{"id":3,"index":3,"parentId":0,"type":0,"option":4,"title":"输入文字","sequence":[],"isInLoop":false,"position":2,"parameters":{"history":5,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"userNameInput\"]","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"value":"nusstu\\e0546263","index":0,"allXPaths":["/html/body/div[2]/div[2]/div[1]/div[2]/div[1]/div[1]/form[1]/div[2]/div[1]/input[1]","//input[contains(., '')]","id(\"userNameInput\")","//INPUT[@class='text fullWidth']","//INPUT[@name='UserName']","/html/body/div[last()-3]/div/div[last()-1]/div[last()-1]/div/div/form/div/div[last()-3]/input"]}},{"id":4,"index":4,"parentId":0,"type":0,"option":4,"title":"输入文字","sequence":[],"isInLoop":false,"position":3,"parameters":{"history":5,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"passwordInput\"]","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"value":"Qw982311099.","index":0,"allXPaths":["/html/body/div[2]/div[2]/div[1]/div[2]/div[1]/div[1]/form[1]/div[2]/div[2]/input[1]","//input[contains(., '')]","id(\"passwordInput\")","//INPUT[@class='text fullWidth']","//INPUT[@name='Password']","/html/body/div[last()-3]/div/div[last()-1]/div[last()-1]/div/div/form/div/div[last()-2]/input"]}},{"id":5,"index":5,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":4,"parameters":{"history":5,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"submitButton\"]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[2]/div[1]/div[2]/div[1]/div[1]/form[1]/div[2]/div[4]/span[1]","//span[contains(., 'Sign in')]","id(\"submitButton\")","//SPAN[@class='submit']","/html/body/div[last()-3]/div/div[last()-1]/div[last()-1]/div/div/form/div/div/span"]}},{"id":-1,"index":6,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":5,"parameters":{"history":5,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"submitButton\"]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[2]/div[1]/div[2]/div[1]/div[1]/form[1]/div[2]/div[4]/span[1]","//span[contains(., 'Sign in')]","id(\"submitButton\")","//SPAN[@class='submit']","/html/body/div[last()-3]/div/div[last()-1]/div[last()-1]/div/div/form/div/div/span"]}},{"id":-1,"index":7,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":5,"parameters":{"history":6,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"bookfacility\"]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[1]/div[1]/div[3]/ul[1]/li[5]/a[1]","//a[contains(., 'Book Facil')]","id(\"bookfacility\")","//A[@class='parent']","//A[@name='bookfacility']","/html/body/div[last()-4]/div/div[last()-1]/div[last()-5]/ul/li[last()-4]/a"]}},{"id":-1,"index":8,"parentId":0,"type":0,"option":6,"title":"切换下拉选项","sequence":[],"isInLoop":false,"position":6,"parameters":{"history":7,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"activity_filter\"]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"optionMode":0,"optionValue":"Badminton","index":0,"allXPaths":["/html/body/div[2]/div[1]/div[1]/section[3]/div[1]/form[1]/fieldset[1]/select[1]","//select[contains(., 'Select an')]","id(\"activity_filter\")","//SELECT[@class='input-xlarge ']","//SELECT[@name='activity_filter']","/html/body/div[last()-5]/div/div[last()-1]/section/div/form/fieldset[last()-3]/select"]}},{"id":-1,"index":9,"parentId":0,"type":0,"option":6,"title":"切换下拉选项","sequence":[],"isInLoop":false,"position":7,"parameters":{"history":7,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"activity_filter\"]","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"optionMode":"1","optionValue":1,"index":0,"allXPaths":["/html/body/div[2]/div[1]/div[1]/section[3]/div[1]/form[1]/fieldset[1]/select[1]","//select[contains(., 'Select an')]","id(\"activity_filter\")","//SELECT[@class='input-xlarge ']","//SELECT[@name='activity_filter']","/html/body/div[last()-5]/div/div[last()-1]/section/div/form/fieldset[last()-3]/select"]}},{"id":-1,"index":10,"parentId":0,"type":0,"option":6,"title":"切换下拉选项","sequence":[],"isInLoop":false,"position":7,"parameters":{"history":7,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"venue_filter\"]","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"optionMode":"1","optionValue":"1","index":0,"allXPaths":["/html/body/div[2]/div[1]/div[1]/section[3]/div[1]/form[1]/fieldset[2]/select[1]","//select[contains(., 'Select a v')]","id(\"venue_filter\")","//SELECT[@class='input-xlarge ']","//SELECT[@name='venue_filter']","/html/body/div[last()-5]/div/div[last()-1]/section/div/form/fieldset[last()-2]/select"]}},{"id":-1,"index":11,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":8,"parameters":{"history":7,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"date_filter\"]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[1]/div[1]/section[3]/div[1]/form[1]/fieldset[3]/input[1]","//input[contains(., '')]","id(\"date_filter\")","//INPUT[@class='chosen-container datepicker hasDatepicker']","//INPUT[@name='date_filter']","/html/body/div[last()-5]/div/div[last()-1]/section/div/form/fieldset[last()-1]/input"]}},{"id":-1,"index":12,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":9,"parameters":{"history":7,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"search\"]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[1]/div[1]/section[3]/div[1]/form[1]/fieldset[4]/input[1]","//input[contains(., '')]","id(\"search\")","//INPUT[@class='btn btn-filter-search']","//INPUT[@name='search']","/html/body/div[last()-5]/div/div[last()-1]/section/div/form/fieldset/input"]}},{"id":-1,"index":13,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":10,"parameters":{"history":8,"tabIndex":-1,"useLoop":false,"xpath":"//*[contains(@class, \"timeslot-container\")]/div[5]/div[1]/div[7]/label[1]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[1]/div[1]/section[3]/div[4]/div[1]/form[1]/div[1]/div[5]/div[1]/div[7]/label[1]","//label[contains(., '01:00 PM')]","/html/body/div[last()-5]/div/div[last()-1]/section/div/div/form/div[last()-1]/div[last()-1]/div/div[last()-7]/label"]}},{"id":-1,"index":14,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":11,"parameters":{"history":8,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"paynow\"]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[1]/div[1]/section[3]/div[4]/div[1]/form[1]/div[2]/div[1]/input[1]","//input[contains(., '')]","id(\"paynow\")","//INPUT[@class='btn btn-flat blue last-child']","//INPUT[@name='cart']","/html/body/div[last()-5]/div/div[last()-1]/section/div/div/form/div/div/input"]}},{"id":-1,"index":15,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":12,"parameters":{"history":5,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"bookfacility\"]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[1]/div[1]/div[3]/ul[1]/li[5]/a[1]","//a[contains(., 'Book Facil')]","id(\"bookfacility\")","//A[@class='parent']","//A[@name='bookfacility']","/html/body/div[last()-4]/div/div[last()-1]/div[last()-5]/ul/li[last()-4]/a"]}},{"id":6,"index":16,"parentId":0,"type":0,"option":1,"title":"打开网页","sequence":[],"isInLoop":false,"position":5,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":3,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"url":"about:blank","links":"https://reboks.nus.edu.sg/nus_public_web/public/facilities/view/activity/58/venue/15?time_from=1694016000","maxWaitTime":10,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"cookies":""}},{"id":7,"index":17,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":6,"parameters":{"history":6,"tabIndex":-1,"useLoop":false,"xpath":"//*[contains(@class, \"timeslot-container\")]/div[1]/div[1]/div[1]/label[1]","iframe":false,"wait":4,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[1]/div[1]/section[3]/div[4]/div[1]/form[1]/div[1]/div[1]/div[1]/div[1]/label[1]","//label[contains(., '07:00 AM')]","/html/body/div[last()-5]/div/div[last()-1]/section/div/div/form/div[last()-1]/div[last()-5]/div/div[last()-13]/label"]}},{"id":8,"index":18,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":7,"parameters":{"history":6,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"paynow\"]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[1]/div[1]/section[3]/div[4]/div[1]/form[1]/div[2]/div[1]/input[1]","//input[contains(., '')]","id(\"paynow\")","//INPUT[@class='btn btn-flat blue last-child']","//INPUT[@name='cart']","/html/body/div[last()-5]/div/div[last()-1]/section/div/div/form/div/div/input"]}},{"id":9,"index":19,"parentId":0,"type":0,"option":5,"title":"自定义操作","sequence":[],"isInLoop":false,"position":8,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"clear":0,"codeMode":"5","code":"from selenium.webdriver.support.ui import WebDriverWait\nfrom selenium.webdriver.support import expected_conditions as EC\n\ntry:\n # 等待警告出现并获取警告对话框\n WebDriverWait(self.browser, 5).until(EC.alert_is_present())\n\n # 切换到警告并接受\n alert = self.browser.switch_to.alert\n alert.accept()\nexcept Exception as e:\n print(e)","waitTime":0,"recordASField":0,"paraType":"text"}}]} \ No newline at end of file diff --git a/.temp_to_pub/EasySpider_windows_x64/execution_instances/42.json b/.temp_to_pub/EasySpider_windows_x64/execution_instances/42.json new file mode 100644 index 0000000..ec7ec30 --- /dev/null +++ b/.temp_to_pub/EasySpider_windows_x64/execution_instances/42.json @@ -0,0 +1 @@ +{"id":42,"name":"NUS","url":"https://reboks.nus.edu.sg/","links":"https://reboks.nus.edu.sg/","create_time":"9/5/2023, 12:28:18 PM","update_time":"9/5/2023, 1:03:50 PM","version":"0.5.0","saveThreshold":10,"cloudflare":0,"environment":0,"maxViewLength":15,"recordLog":1,"outputFormat":"xlsx","saveName":"current_time","inputExcel":"","startFromExit":0,"containJudge":false,"desc":"https://reboks.nus.edu.sg/","inputParameters":[{"id":0,"name":"urlList_0","nodeId":1,"nodeName":"打开网页","value":"https://reboks.nus.edu.sg/","desc":"要采集的网址列表,多行以\\n分开","type":"text","exampleValue":"https://reboks.nus.edu.sg/"},{"id":1,"name":"inputText_1","nodeName":"输入文字","nodeId":3,"desc":"要输入的文本,如京东搜索框输入:电脑","type":"text","exampleValue":"nusstu\\e0546263","value":"nusstu\\e0546263"},{"id":2,"name":"inputText_2","nodeName":"输入文字","nodeId":4,"desc":"要输入的文本,如京东搜索框输入:电脑","type":"text","exampleValue":"Qw982311099.","value":"Qw982311099."},{"id":3,"name":"urlList_3","nodeId":16,"nodeName":"打开网页","value":"https://reboks.nus.edu.sg/nus_public_web/public/facilities/view/activity/58/venue/15?time_from=1694016000","desc":"要采集的网址列表,多行以\\n分开","type":"text","exampleValue":"https://reboks.nus.edu.sg/nus_public_web/public/facilities/view/activity/58/venue/15?time_from=1694016000"}],"outputParameters":[{"id":0,"name":"自定义操作","desc":"自定义操作返回的数据","type":"text","recordASField":0,"exampleValue":""}],"graph":[{"index":0,"id":0,"parentId":0,"type":-1,"option":0,"title":"root","sequence":[1,2,3,4,5,16,17,18,19],"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":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,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"url":"https://reboks.nus.edu.sg/","links":"https://reboks.nus.edu.sg/","maxWaitTime":10,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"cookies":""}},{"id":2,"index":2,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":1,"parameters":{"history":4,"tabIndex":-1,"useLoop":false,"xpath":"//*[contains(@class, \"btn-facebook\")]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[1]/div[1]/div[1]/div[5]/div[2]/div[1]/fieldset[1]/div[1]/div[1]/div[2]/a[1]","//a[contains(., '')]","//A[@class='btn btn-block btn-facebook']","/html/body/div[last()-3]/div/div/div[last()-2]/div/div/fieldset/div/div/div[last()-1]/a[last()-1]"]}},{"id":3,"index":3,"parentId":0,"type":0,"option":4,"title":"输入文字","sequence":[],"isInLoop":false,"position":2,"parameters":{"history":5,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"userNameInput\"]","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"value":"nusstu\\e0546263","index":0,"allXPaths":["/html/body/div[2]/div[2]/div[1]/div[2]/div[1]/div[1]/form[1]/div[2]/div[1]/input[1]","//input[contains(., '')]","id(\"userNameInput\")","//INPUT[@class='text fullWidth']","//INPUT[@name='UserName']","/html/body/div[last()-3]/div/div[last()-1]/div[last()-1]/div/div/form/div/div[last()-3]/input"]}},{"id":4,"index":4,"parentId":0,"type":0,"option":4,"title":"输入文字","sequence":[],"isInLoop":false,"position":3,"parameters":{"history":5,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"passwordInput\"]","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"value":"Qw982311099.","index":0,"allXPaths":["/html/body/div[2]/div[2]/div[1]/div[2]/div[1]/div[1]/form[1]/div[2]/div[2]/input[1]","//input[contains(., '')]","id(\"passwordInput\")","//INPUT[@class='text fullWidth']","//INPUT[@name='Password']","/html/body/div[last()-3]/div/div[last()-1]/div[last()-1]/div/div/form/div/div[last()-2]/input"]}},{"id":5,"index":5,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":4,"parameters":{"history":5,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"submitButton\"]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[2]/div[1]/div[2]/div[1]/div[1]/form[1]/div[2]/div[4]/span[1]","//span[contains(., 'Sign in')]","id(\"submitButton\")","//SPAN[@class='submit']","/html/body/div[last()-3]/div/div[last()-1]/div[last()-1]/div/div/form/div/div/span"]}},{"id":-1,"index":6,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":5,"parameters":{"history":5,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"submitButton\"]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[2]/div[1]/div[2]/div[1]/div[1]/form[1]/div[2]/div[4]/span[1]","//span[contains(., 'Sign in')]","id(\"submitButton\")","//SPAN[@class='submit']","/html/body/div[last()-3]/div/div[last()-1]/div[last()-1]/div/div/form/div/div/span"]}},{"id":-1,"index":7,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":5,"parameters":{"history":6,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"bookfacility\"]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[1]/div[1]/div[3]/ul[1]/li[5]/a[1]","//a[contains(., 'Book Facil')]","id(\"bookfacility\")","//A[@class='parent']","//A[@name='bookfacility']","/html/body/div[last()-4]/div/div[last()-1]/div[last()-5]/ul/li[last()-4]/a"]}},{"id":-1,"index":8,"parentId":0,"type":0,"option":6,"title":"切换下拉选项","sequence":[],"isInLoop":false,"position":6,"parameters":{"history":7,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"activity_filter\"]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"optionMode":0,"optionValue":"Badminton","index":0,"allXPaths":["/html/body/div[2]/div[1]/div[1]/section[3]/div[1]/form[1]/fieldset[1]/select[1]","//select[contains(., 'Select an')]","id(\"activity_filter\")","//SELECT[@class='input-xlarge ']","//SELECT[@name='activity_filter']","/html/body/div[last()-5]/div/div[last()-1]/section/div/form/fieldset[last()-3]/select"]}},{"id":-1,"index":9,"parentId":0,"type":0,"option":6,"title":"切换下拉选项","sequence":[],"isInLoop":false,"position":7,"parameters":{"history":7,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"activity_filter\"]","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"optionMode":"1","optionValue":1,"index":0,"allXPaths":["/html/body/div[2]/div[1]/div[1]/section[3]/div[1]/form[1]/fieldset[1]/select[1]","//select[contains(., 'Select an')]","id(\"activity_filter\")","//SELECT[@class='input-xlarge ']","//SELECT[@name='activity_filter']","/html/body/div[last()-5]/div/div[last()-1]/section/div/form/fieldset[last()-3]/select"]}},{"id":-1,"index":10,"parentId":0,"type":0,"option":6,"title":"切换下拉选项","sequence":[],"isInLoop":false,"position":7,"parameters":{"history":7,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"venue_filter\"]","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"optionMode":"1","optionValue":"1","index":0,"allXPaths":["/html/body/div[2]/div[1]/div[1]/section[3]/div[1]/form[1]/fieldset[2]/select[1]","//select[contains(., 'Select a v')]","id(\"venue_filter\")","//SELECT[@class='input-xlarge ']","//SELECT[@name='venue_filter']","/html/body/div[last()-5]/div/div[last()-1]/section/div/form/fieldset[last()-2]/select"]}},{"id":-1,"index":11,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":8,"parameters":{"history":7,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"date_filter\"]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[1]/div[1]/section[3]/div[1]/form[1]/fieldset[3]/input[1]","//input[contains(., '')]","id(\"date_filter\")","//INPUT[@class='chosen-container datepicker hasDatepicker']","//INPUT[@name='date_filter']","/html/body/div[last()-5]/div/div[last()-1]/section/div/form/fieldset[last()-1]/input"]}},{"id":-1,"index":12,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":9,"parameters":{"history":7,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"search\"]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[1]/div[1]/section[3]/div[1]/form[1]/fieldset[4]/input[1]","//input[contains(., '')]","id(\"search\")","//INPUT[@class='btn btn-filter-search']","//INPUT[@name='search']","/html/body/div[last()-5]/div/div[last()-1]/section/div/form/fieldset/input"]}},{"id":-1,"index":13,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":10,"parameters":{"history":8,"tabIndex":-1,"useLoop":false,"xpath":"//*[contains(@class, \"timeslot-container\")]/div[5]/div[1]/div[7]/label[1]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[1]/div[1]/section[3]/div[4]/div[1]/form[1]/div[1]/div[5]/div[1]/div[7]/label[1]","//label[contains(., '01:00 PM')]","/html/body/div[last()-5]/div/div[last()-1]/section/div/div/form/div[last()-1]/div[last()-1]/div/div[last()-7]/label"]}},{"id":-1,"index":14,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":11,"parameters":{"history":8,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"paynow\"]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[1]/div[1]/section[3]/div[4]/div[1]/form[1]/div[2]/div[1]/input[1]","//input[contains(., '')]","id(\"paynow\")","//INPUT[@class='btn btn-flat blue last-child']","//INPUT[@name='cart']","/html/body/div[last()-5]/div/div[last()-1]/section/div/div/form/div/div/input"]}},{"id":-1,"index":15,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":12,"parameters":{"history":5,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"bookfacility\"]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[1]/div[1]/div[3]/ul[1]/li[5]/a[1]","//a[contains(., 'Book Facil')]","id(\"bookfacility\")","//A[@class='parent']","//A[@name='bookfacility']","/html/body/div[last()-4]/div/div[last()-1]/div[last()-5]/ul/li[last()-4]/a"]}},{"id":6,"index":16,"parentId":0,"type":0,"option":1,"title":"打开网页","sequence":[],"isInLoop":false,"position":5,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":3,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"url":"about:blank","links":"https://reboks.nus.edu.sg/nus_public_web/public/facilities/view/activity/58/venue/15?time_from=1694016000","maxWaitTime":10,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"cookies":""}},{"id":7,"index":17,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":6,"parameters":{"history":6,"tabIndex":-1,"useLoop":false,"xpath":"//*[contains(@class, \"timeslot-container\")]/div[1]/div[1]/div[1]/label[1]","iframe":false,"wait":4,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[1]/div[1]/section[3]/div[4]/div[1]/form[1]/div[1]/div[1]/div[1]/div[1]/label[1]","//label[contains(., '07:00 AM')]","/html/body/div[last()-5]/div/div[last()-1]/section/div/div/form/div[last()-1]/div[last()-5]/div/div[last()-13]/label"]}},{"id":8,"index":18,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":7,"parameters":{"history":6,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"paynow\"]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[1]/div[1]/section[3]/div[4]/div[1]/form[1]/div[2]/div[1]/input[1]","//input[contains(., '')]","id(\"paynow\")","//INPUT[@class='btn btn-flat blue last-child']","//INPUT[@name='cart']","/html/body/div[last()-5]/div/div[last()-1]/section/div/div/form/div/div/input"]}},{"id":9,"index":19,"parentId":0,"type":0,"option":5,"title":"自定义操作","sequence":[],"isInLoop":false,"position":8,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"clear":0,"codeMode":"5","code":"from selenium.webdriver.support.ui import WebDriverWait\nfrom selenium.webdriver.support import expected_conditions as EC\n\ntry:\n # 等待警告出现并获取警告对话框\n WebDriverWait(self.browser, 5).until(EC.alert_is_present())\n\n # 切换到警告并接受\n alert = self.browser.switch_to.alert\n alert.accept()\nexcept Exception as e:\n print(e)","waitTime":0,"recordASField":0,"paraType":"text"}}]} \ No newline at end of file diff --git a/.temp_to_pub/EasySpider_windows_x64/execution_instances/43.json b/.temp_to_pub/EasySpider_windows_x64/execution_instances/43.json new file mode 100644 index 0000000..0c2c12e --- /dev/null +++ b/.temp_to_pub/EasySpider_windows_x64/execution_instances/43.json @@ -0,0 +1 @@ +{"id":43,"name":"NUS","url":"https://reboks.nus.edu.sg/","links":"https://reboks.nus.edu.sg/","create_time":"9/5/2023, 12:28:18 PM","update_time":"9/5/2023, 1:05:36 PM","version":"0.5.0","saveThreshold":10,"cloudflare":0,"environment":0,"maxViewLength":15,"recordLog":1,"outputFormat":"xlsx","saveName":"current_time","inputExcel":"","startFromExit":0,"containJudge":false,"desc":"https://reboks.nus.edu.sg/","inputParameters":[{"id":0,"name":"urlList_0","nodeId":1,"nodeName":"打开网页","value":"https://reboks.nus.edu.sg/","desc":"要采集的网址列表,多行以\\n分开","type":"text","exampleValue":"https://reboks.nus.edu.sg/"},{"id":1,"name":"inputText_1","nodeName":"输入文字","nodeId":3,"desc":"要输入的文本,如京东搜索框输入:电脑","type":"text","exampleValue":"nusstu\\e0546263","value":"nusstu\\e0546263"},{"id":2,"name":"inputText_2","nodeName":"输入文字","nodeId":4,"desc":"要输入的文本,如京东搜索框输入:电脑","type":"text","exampleValue":"Qw982311099.","value":"Qw982311099."},{"id":3,"name":"urlList_3","nodeId":16,"nodeName":"打开网页","value":"https://reboks.nus.edu.sg/nus_public_web/public/facilities/view/activity/58/venue/15?time_from=1694016000","desc":"要采集的网址列表,多行以\\n分开","type":"text","exampleValue":"https://reboks.nus.edu.sg/nus_public_web/public/facilities/view/activity/58/venue/15?time_from=1694016000"}],"outputParameters":[{"id":0,"name":"自定义操作","desc":"自定义操作返回的数据","type":"text","recordASField":0,"exampleValue":""}],"graph":[{"index":0,"id":0,"parentId":0,"type":-1,"option":0,"title":"root","sequence":[1,2,3,4,5,16,17,18,19],"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":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,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"url":"https://reboks.nus.edu.sg/","links":"https://reboks.nus.edu.sg/","maxWaitTime":10,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"cookies":""}},{"id":2,"index":2,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":1,"parameters":{"history":4,"tabIndex":-1,"useLoop":false,"xpath":"//*[contains(@class, \"btn-facebook\")]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[1]/div[1]/div[1]/div[5]/div[2]/div[1]/fieldset[1]/div[1]/div[1]/div[2]/a[1]","//a[contains(., '')]","//A[@class='btn btn-block btn-facebook']","/html/body/div[last()-3]/div/div/div[last()-2]/div/div/fieldset/div/div/div[last()-1]/a[last()-1]"]}},{"id":3,"index":3,"parentId":0,"type":0,"option":4,"title":"输入文字","sequence":[],"isInLoop":false,"position":2,"parameters":{"history":5,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"userNameInput\"]","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"value":"nusstu\\e0546263","index":0,"allXPaths":["/html/body/div[2]/div[2]/div[1]/div[2]/div[1]/div[1]/form[1]/div[2]/div[1]/input[1]","//input[contains(., '')]","id(\"userNameInput\")","//INPUT[@class='text fullWidth']","//INPUT[@name='UserName']","/html/body/div[last()-3]/div/div[last()-1]/div[last()-1]/div/div/form/div/div[last()-3]/input"]}},{"id":4,"index":4,"parentId":0,"type":0,"option":4,"title":"输入文字","sequence":[],"isInLoop":false,"position":3,"parameters":{"history":5,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"passwordInput\"]","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"value":"Qw982311099.","index":0,"allXPaths":["/html/body/div[2]/div[2]/div[1]/div[2]/div[1]/div[1]/form[1]/div[2]/div[2]/input[1]","//input[contains(., '')]","id(\"passwordInput\")","//INPUT[@class='text fullWidth']","//INPUT[@name='Password']","/html/body/div[last()-3]/div/div[last()-1]/div[last()-1]/div/div/form/div/div[last()-2]/input"]}},{"id":5,"index":5,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":4,"parameters":{"history":5,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"submitButton\"]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[2]/div[1]/div[2]/div[1]/div[1]/form[1]/div[2]/div[4]/span[1]","//span[contains(., 'Sign in')]","id(\"submitButton\")","//SPAN[@class='submit']","/html/body/div[last()-3]/div/div[last()-1]/div[last()-1]/div/div/form/div/div/span"]}},{"id":-1,"index":6,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":5,"parameters":{"history":5,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"submitButton\"]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[2]/div[1]/div[2]/div[1]/div[1]/form[1]/div[2]/div[4]/span[1]","//span[contains(., 'Sign in')]","id(\"submitButton\")","//SPAN[@class='submit']","/html/body/div[last()-3]/div/div[last()-1]/div[last()-1]/div/div/form/div/div/span"]}},{"id":-1,"index":7,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":5,"parameters":{"history":6,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"bookfacility\"]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[1]/div[1]/div[3]/ul[1]/li[5]/a[1]","//a[contains(., 'Book Facil')]","id(\"bookfacility\")","//A[@class='parent']","//A[@name='bookfacility']","/html/body/div[last()-4]/div/div[last()-1]/div[last()-5]/ul/li[last()-4]/a"]}},{"id":-1,"index":8,"parentId":0,"type":0,"option":6,"title":"切换下拉选项","sequence":[],"isInLoop":false,"position":6,"parameters":{"history":7,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"activity_filter\"]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"optionMode":0,"optionValue":"Badminton","index":0,"allXPaths":["/html/body/div[2]/div[1]/div[1]/section[3]/div[1]/form[1]/fieldset[1]/select[1]","//select[contains(., 'Select an')]","id(\"activity_filter\")","//SELECT[@class='input-xlarge ']","//SELECT[@name='activity_filter']","/html/body/div[last()-5]/div/div[last()-1]/section/div/form/fieldset[last()-3]/select"]}},{"id":-1,"index":9,"parentId":0,"type":0,"option":6,"title":"切换下拉选项","sequence":[],"isInLoop":false,"position":7,"parameters":{"history":7,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"activity_filter\"]","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"optionMode":"1","optionValue":1,"index":0,"allXPaths":["/html/body/div[2]/div[1]/div[1]/section[3]/div[1]/form[1]/fieldset[1]/select[1]","//select[contains(., 'Select an')]","id(\"activity_filter\")","//SELECT[@class='input-xlarge ']","//SELECT[@name='activity_filter']","/html/body/div[last()-5]/div/div[last()-1]/section/div/form/fieldset[last()-3]/select"]}},{"id":-1,"index":10,"parentId":0,"type":0,"option":6,"title":"切换下拉选项","sequence":[],"isInLoop":false,"position":7,"parameters":{"history":7,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"venue_filter\"]","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"optionMode":"1","optionValue":"1","index":0,"allXPaths":["/html/body/div[2]/div[1]/div[1]/section[3]/div[1]/form[1]/fieldset[2]/select[1]","//select[contains(., 'Select a v')]","id(\"venue_filter\")","//SELECT[@class='input-xlarge ']","//SELECT[@name='venue_filter']","/html/body/div[last()-5]/div/div[last()-1]/section/div/form/fieldset[last()-2]/select"]}},{"id":-1,"index":11,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":8,"parameters":{"history":7,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"date_filter\"]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[1]/div[1]/section[3]/div[1]/form[1]/fieldset[3]/input[1]","//input[contains(., '')]","id(\"date_filter\")","//INPUT[@class='chosen-container datepicker hasDatepicker']","//INPUT[@name='date_filter']","/html/body/div[last()-5]/div/div[last()-1]/section/div/form/fieldset[last()-1]/input"]}},{"id":-1,"index":12,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":9,"parameters":{"history":7,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"search\"]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[1]/div[1]/section[3]/div[1]/form[1]/fieldset[4]/input[1]","//input[contains(., '')]","id(\"search\")","//INPUT[@class='btn btn-filter-search']","//INPUT[@name='search']","/html/body/div[last()-5]/div/div[last()-1]/section/div/form/fieldset/input"]}},{"id":-1,"index":13,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":10,"parameters":{"history":8,"tabIndex":-1,"useLoop":false,"xpath":"//*[contains(@class, \"timeslot-container\")]/div[5]/div[1]/div[7]/label[1]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[1]/div[1]/section[3]/div[4]/div[1]/form[1]/div[1]/div[5]/div[1]/div[7]/label[1]","//label[contains(., '01:00 PM')]","/html/body/div[last()-5]/div/div[last()-1]/section/div/div/form/div[last()-1]/div[last()-1]/div/div[last()-7]/label"]}},{"id":-1,"index":14,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":11,"parameters":{"history":8,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"paynow\"]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[1]/div[1]/section[3]/div[4]/div[1]/form[1]/div[2]/div[1]/input[1]","//input[contains(., '')]","id(\"paynow\")","//INPUT[@class='btn btn-flat blue last-child']","//INPUT[@name='cart']","/html/body/div[last()-5]/div/div[last()-1]/section/div/div/form/div/div/input"]}},{"id":-1,"index":15,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":12,"parameters":{"history":5,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"bookfacility\"]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[1]/div[1]/div[3]/ul[1]/li[5]/a[1]","//a[contains(., 'Book Facil')]","id(\"bookfacility\")","//A[@class='parent']","//A[@name='bookfacility']","/html/body/div[last()-4]/div/div[last()-1]/div[last()-5]/ul/li[last()-4]/a"]}},{"id":6,"index":16,"parentId":0,"type":0,"option":1,"title":"打开网页","sequence":[],"isInLoop":false,"position":5,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":3,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"url":"about:blank","links":"https://reboks.nus.edu.sg/nus_public_web/public/facilities/view/activity/58/venue/15?time_from=1694016000","maxWaitTime":10,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"cookies":""}},{"id":7,"index":17,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":6,"parameters":{"history":6,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"formTimeslots\"]//label[contains(text(),\"08:\")]","iframe":false,"wait":4,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[1]/div[1]/section[3]/div[4]/div[1]/form[1]/div[1]/div[1]/div[1]/div[1]/label[1]","//label[contains(., '07:00 AM')]","/html/body/div[last()-5]/div/div[last()-1]/section/div/div/form/div[last()-1]/div[last()-5]/div/div[last()-13]/label"]}},{"id":8,"index":18,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":7,"parameters":{"history":6,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"paynow\"]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[1]/div[1]/section[3]/div[4]/div[1]/form[1]/div[2]/div[1]/input[1]","//input[contains(., '')]","id(\"paynow\")","//INPUT[@class='btn btn-flat blue last-child']","//INPUT[@name='cart']","/html/body/div[last()-5]/div/div[last()-1]/section/div/div/form/div/div/input"]}},{"id":9,"index":19,"parentId":0,"type":0,"option":5,"title":"自定义操作","sequence":[],"isInLoop":false,"position":8,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"clear":0,"codeMode":"5","code":"from selenium.webdriver.support.ui import WebDriverWait\nfrom selenium.webdriver.support import expected_conditions as EC\n\ntry:\n # 等待警告出现并获取警告对话框\n WebDriverWait(self.browser, 5).until(EC.alert_is_present())\n\n # 切换到警告并接受\n alert = self.browser.switch_to.alert\n alert.accept()\nexcept Exception as e:\n print(e)","waitTime":0,"recordASField":0,"paraType":"text"}}]} \ No newline at end of file diff --git a/.temp_to_pub/EasySpider_windows_x64/execution_instances/44.json b/.temp_to_pub/EasySpider_windows_x64/execution_instances/44.json new file mode 100644 index 0000000..d0062be --- /dev/null +++ b/.temp_to_pub/EasySpider_windows_x64/execution_instances/44.json @@ -0,0 +1 @@ +{"id":44,"name":"NUS","url":"https://reboks.nus.edu.sg/","links":"https://reboks.nus.edu.sg/","create_time":"9/5/2023, 12:28:18 PM","update_time":"9/5/2023, 1:05:36 PM","version":"0.5.0","saveThreshold":10,"cloudflare":0,"environment":0,"maxViewLength":15,"recordLog":1,"outputFormat":"xlsx","saveName":"current_time","inputExcel":"","startFromExit":0,"containJudge":false,"desc":"https://reboks.nus.edu.sg/","inputParameters":[{"id":0,"name":"urlList_0","nodeId":1,"nodeName":"打开网页","value":"https://reboks.nus.edu.sg/","desc":"要采集的网址列表,多行以\\n分开","type":"text","exampleValue":"https://reboks.nus.edu.sg/"},{"id":1,"name":"inputText_1","nodeName":"输入文字","nodeId":3,"desc":"要输入的文本,如京东搜索框输入:电脑","type":"text","exampleValue":"nusstu\\e0546263","value":"nusstu\\e0546263"},{"id":2,"name":"inputText_2","nodeName":"输入文字","nodeId":4,"desc":"要输入的文本,如京东搜索框输入:电脑","type":"text","exampleValue":"Qw982311099.","value":"Qw982311099."},{"id":3,"name":"urlList_3","nodeId":16,"nodeName":"打开网页","value":"https://reboks.nus.edu.sg/nus_public_web/public/facilities/view/activity/58/venue/15?time_from=1694016000","desc":"要采集的网址列表,多行以\\n分开","type":"text","exampleValue":"https://reboks.nus.edu.sg/nus_public_web/public/facilities/view/activity/58/venue/15?time_from=1694016000"}],"outputParameters":[{"id":0,"name":"自定义操作","desc":"自定义操作返回的数据","type":"text","recordASField":0,"exampleValue":""}],"graph":[{"index":0,"id":0,"parentId":0,"type":-1,"option":0,"title":"root","sequence":[1,2,3,4,5,16,17,18,19],"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":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,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"url":"https://reboks.nus.edu.sg/","links":"https://reboks.nus.edu.sg/","maxWaitTime":10,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"cookies":""}},{"id":2,"index":2,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":1,"parameters":{"history":4,"tabIndex":-1,"useLoop":false,"xpath":"//*[contains(@class, \"btn-facebook\")]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[1]/div[1]/div[1]/div[5]/div[2]/div[1]/fieldset[1]/div[1]/div[1]/div[2]/a[1]","//a[contains(., '')]","//A[@class='btn btn-block btn-facebook']","/html/body/div[last()-3]/div/div/div[last()-2]/div/div/fieldset/div/div/div[last()-1]/a[last()-1]"]}},{"id":3,"index":3,"parentId":0,"type":0,"option":4,"title":"输入文字","sequence":[],"isInLoop":false,"position":2,"parameters":{"history":5,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"userNameInput\"]","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"value":"nusstu\\e0546263","index":0,"allXPaths":["/html/body/div[2]/div[2]/div[1]/div[2]/div[1]/div[1]/form[1]/div[2]/div[1]/input[1]","//input[contains(., '')]","id(\"userNameInput\")","//INPUT[@class='text fullWidth']","//INPUT[@name='UserName']","/html/body/div[last()-3]/div/div[last()-1]/div[last()-1]/div/div/form/div/div[last()-3]/input"]}},{"id":4,"index":4,"parentId":0,"type":0,"option":4,"title":"输入文字","sequence":[],"isInLoop":false,"position":3,"parameters":{"history":5,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"passwordInput\"]","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"value":"Qw982311099.","index":0,"allXPaths":["/html/body/div[2]/div[2]/div[1]/div[2]/div[1]/div[1]/form[1]/div[2]/div[2]/input[1]","//input[contains(., '')]","id(\"passwordInput\")","//INPUT[@class='text fullWidth']","//INPUT[@name='Password']","/html/body/div[last()-3]/div/div[last()-1]/div[last()-1]/div/div/form/div/div[last()-2]/input"]}},{"id":5,"index":5,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":4,"parameters":{"history":5,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"submitButton\"]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[2]/div[1]/div[2]/div[1]/div[1]/form[1]/div[2]/div[4]/span[1]","//span[contains(., 'Sign in')]","id(\"submitButton\")","//SPAN[@class='submit']","/html/body/div[last()-3]/div/div[last()-1]/div[last()-1]/div/div/form/div/div/span"]}},{"id":-1,"index":6,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":5,"parameters":{"history":5,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"submitButton\"]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[2]/div[1]/div[2]/div[1]/div[1]/form[1]/div[2]/div[4]/span[1]","//span[contains(., 'Sign in')]","id(\"submitButton\")","//SPAN[@class='submit']","/html/body/div[last()-3]/div/div[last()-1]/div[last()-1]/div/div/form/div/div/span"]}},{"id":-1,"index":7,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":5,"parameters":{"history":6,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"bookfacility\"]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[1]/div[1]/div[3]/ul[1]/li[5]/a[1]","//a[contains(., 'Book Facil')]","id(\"bookfacility\")","//A[@class='parent']","//A[@name='bookfacility']","/html/body/div[last()-4]/div/div[last()-1]/div[last()-5]/ul/li[last()-4]/a"]}},{"id":-1,"index":8,"parentId":0,"type":0,"option":6,"title":"切换下拉选项","sequence":[],"isInLoop":false,"position":6,"parameters":{"history":7,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"activity_filter\"]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"optionMode":0,"optionValue":"Badminton","index":0,"allXPaths":["/html/body/div[2]/div[1]/div[1]/section[3]/div[1]/form[1]/fieldset[1]/select[1]","//select[contains(., 'Select an')]","id(\"activity_filter\")","//SELECT[@class='input-xlarge ']","//SELECT[@name='activity_filter']","/html/body/div[last()-5]/div/div[last()-1]/section/div/form/fieldset[last()-3]/select"]}},{"id":-1,"index":9,"parentId":0,"type":0,"option":6,"title":"切换下拉选项","sequence":[],"isInLoop":false,"position":7,"parameters":{"history":7,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"activity_filter\"]","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"optionMode":"1","optionValue":1,"index":0,"allXPaths":["/html/body/div[2]/div[1]/div[1]/section[3]/div[1]/form[1]/fieldset[1]/select[1]","//select[contains(., 'Select an')]","id(\"activity_filter\")","//SELECT[@class='input-xlarge ']","//SELECT[@name='activity_filter']","/html/body/div[last()-5]/div/div[last()-1]/section/div/form/fieldset[last()-3]/select"]}},{"id":-1,"index":10,"parentId":0,"type":0,"option":6,"title":"切换下拉选项","sequence":[],"isInLoop":false,"position":7,"parameters":{"history":7,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"venue_filter\"]","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"optionMode":"1","optionValue":"1","index":0,"allXPaths":["/html/body/div[2]/div[1]/div[1]/section[3]/div[1]/form[1]/fieldset[2]/select[1]","//select[contains(., 'Select a v')]","id(\"venue_filter\")","//SELECT[@class='input-xlarge ']","//SELECT[@name='venue_filter']","/html/body/div[last()-5]/div/div[last()-1]/section/div/form/fieldset[last()-2]/select"]}},{"id":-1,"index":11,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":8,"parameters":{"history":7,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"date_filter\"]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[1]/div[1]/section[3]/div[1]/form[1]/fieldset[3]/input[1]","//input[contains(., '')]","id(\"date_filter\")","//INPUT[@class='chosen-container datepicker hasDatepicker']","//INPUT[@name='date_filter']","/html/body/div[last()-5]/div/div[last()-1]/section/div/form/fieldset[last()-1]/input"]}},{"id":-1,"index":12,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":9,"parameters":{"history":7,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"search\"]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[1]/div[1]/section[3]/div[1]/form[1]/fieldset[4]/input[1]","//input[contains(., '')]","id(\"search\")","//INPUT[@class='btn btn-filter-search']","//INPUT[@name='search']","/html/body/div[last()-5]/div/div[last()-1]/section/div/form/fieldset/input"]}},{"id":-1,"index":13,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":10,"parameters":{"history":8,"tabIndex":-1,"useLoop":false,"xpath":"//*[contains(@class, \"timeslot-container\")]/div[5]/div[1]/div[7]/label[1]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[1]/div[1]/section[3]/div[4]/div[1]/form[1]/div[1]/div[5]/div[1]/div[7]/label[1]","//label[contains(., '01:00 PM')]","/html/body/div[last()-5]/div/div[last()-1]/section/div/div/form/div[last()-1]/div[last()-1]/div/div[last()-7]/label"]}},{"id":-1,"index":14,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":11,"parameters":{"history":8,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"paynow\"]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[1]/div[1]/section[3]/div[4]/div[1]/form[1]/div[2]/div[1]/input[1]","//input[contains(., '')]","id(\"paynow\")","//INPUT[@class='btn btn-flat blue last-child']","//INPUT[@name='cart']","/html/body/div[last()-5]/div/div[last()-1]/section/div/div/form/div/div/input"]}},{"id":-1,"index":15,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":12,"parameters":{"history":5,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"bookfacility\"]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[1]/div[1]/div[3]/ul[1]/li[5]/a[1]","//a[contains(., 'Book Facil')]","id(\"bookfacility\")","//A[@class='parent']","//A[@name='bookfacility']","/html/body/div[last()-4]/div/div[last()-1]/div[last()-5]/ul/li[last()-4]/a"]}},{"id":6,"index":16,"parentId":0,"type":0,"option":1,"title":"打开网页","sequence":[],"isInLoop":false,"position":5,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":3,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"url":"about:blank","links":"https://reboks.nus.edu.sg/nus_public_web/public/facilities/view/activity/58/venue/15?time_from=1694016000","maxWaitTime":10,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"cookies":""}},{"id":7,"index":17,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":6,"parameters":{"history":6,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"formTimeslots\"]//label[contains(text(),\"08:\")]","iframe":false,"wait":4,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[1]/div[1]/section[3]/div[4]/div[1]/form[1]/div[1]/div[1]/div[1]/div[1]/label[1]","//label[contains(., '07:00 AM')]","/html/body/div[last()-5]/div/div[last()-1]/section/div/div/form/div[last()-1]/div[last()-5]/div/div[last()-13]/label"]}},{"id":8,"index":18,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":7,"parameters":{"history":6,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"paynow\"]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[1]/div[1]/section[3]/div[4]/div[1]/form[1]/div[2]/div[1]/input[1]","//input[contains(., '')]","id(\"paynow\")","//INPUT[@class='btn btn-flat blue last-child']","//INPUT[@name='cart']","/html/body/div[last()-5]/div/div[last()-1]/section/div/div/form/div/div/input"]}},{"id":9,"index":19,"parentId":0,"type":0,"option":5,"title":"自定义操作","sequence":[],"isInLoop":false,"position":8,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"clear":0,"codeMode":"5","code":"from selenium.webdriver.support.ui import WebDriverWait\nfrom selenium.webdriver.support import expected_conditions as EC\n\ntry:\n # 等待警告出现并获取警告对话框\n WebDriverWait(self.browser, 5).until(EC.alert_is_present())\n\n # 切换到警告并接受\n alert = self.browser.switch_to.alert\n alert.accept()\nexcept Exception as e:\n print(e)","waitTime":0,"recordASField":0,"paraType":"text"}}]} \ No newline at end of file diff --git a/.temp_to_pub/EasySpider_windows_x64/execution_instances/45.json b/.temp_to_pub/EasySpider_windows_x64/execution_instances/45.json new file mode 100644 index 0000000..dc7290a --- /dev/null +++ b/.temp_to_pub/EasySpider_windows_x64/execution_instances/45.json @@ -0,0 +1 @@ +{"id":45,"name":"京东全球版-专业的综合网上购物商城","url":"https://www.jd.com","links":"https://www.jd.com","create_time":"","update_time":"9/5/2023, 3:43:12 PM","version":"0.5.0","saveThreshold":10,"cloudflare":0,"environment":0,"maxViewLength":15,"recordLog":1,"outputFormat":"xlsx","saveName":"current_time","inputExcel":"","startFromExit":0,"containJudge":true,"desc":"https://www.jd.com","inputParameters":[{"id":0,"name":"urlList_0","nodeId":1,"nodeName":"点击元素","value":"https://www.jd.com","desc":"要采集的网址列表,多行以\\n分开","type":"text","exampleValue":"https://www.jd.com"},{"id":1,"name":"loopTimes_循环_1","nodeId":2,"nodeName":"循环","desc":"循环循环执行的次数(0代表无限循环)","type":"int","exampleValue":0,"value":0}],"outputParameters":[{"id":0,"name":"检测字段","desc":"","type":"text","recordASField":0,"exampleValue":"/手机/数码"},{"id":1,"name":"自定义操作","desc":"自定义操作返回的数据","type":"text","recordASField":0,"exampleValue":""},{"id":2,"name":"自定义操作","desc":"自定义操作返回的数据","type":"text","recordASField":0,"exampleValue":""},{"id":3,"name":"自定义操作","desc":"自定义操作返回的数据","type":"text","recordASField":0,"exampleValue":""}],"graph":[{"index":0,"id":0,"parentId":0,"type":-1,"option":0,"title":"root","sequence":[5,2],"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0},"isInLoop":false},{"id":3,"index":1,"parentId":2,"type":0,"option":1,"title":"点击元素","sequence":[],"isInLoop":true,"position":0,"parameters":{"useLoop":false,"xpath":"","wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"url":"https://www.jd.com","links":"https://www.jd.com","maxWaitTime":10,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"cookies":""}},{"id":2,"index":2,"parentId":0,"type":1,"option":8,"title":"循环","sequence":[1,3,6],"isInLoop":false,"position":1,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"loopType":0,"pathList":"","textList":"","code":"","waitTime":0,"exitCount":0,"historyWait":2,"breakMode":0,"breakCode":"","breakCodeWaitTime":0}},{"id":4,"index":3,"parentId":2,"type":0,"option":3,"title":"提取数据","sequence":[],"isInLoop":true,"position":1,"parameters":{"history":4,"tabIndex":-1,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"clear":0,"paras":[{"nodeType":0,"contentType":0,"relative":false,"name":"检测字段","desc":"","extractType":0,"relativeXPath":"//*[@id=\"hotwords\"]/a[1]","allXPaths":["/html/body/div[6]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]","//div[contains(., '/手机/数码')]","//DIV[@class='LeftSide_menu_item__SBMWC LeftSide_text_space__2UhbG LeftSide_menu_hover__OCHiO']","/html/body/div[last()-5]/div/div[last()-4]/div/div[last()-2]/div/div/div/div[last()-1]/div[last()-12]"],"exampleValues":[{"num":0,"value":"/手机/数码"}],"unique_index":"16i23xj4p54lm5zgdca","iframe":false,"default":"","paraType":"text","recordASField":0,"beforeJS":"","beforeJSWaitTime":0,"JS":"","JSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"downloadPic":0}]}},{"id":-1,"index":4,"parentId":2,"type":0,"option":5,"title":"自定义操作","sequence":[],"isInLoop":true,"position":2,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"clear":0,"codeMode":"5","code":"","waitTime":0,"recordASField":0,"paraType":"text"}},{"id":1,"index":5,"parentId":0,"type":0,"option":5,"title":"自定义操作","sequence":[],"isInLoop":false,"position":0,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"clear":0,"codeMode":"5","code":"self.myVar = \"-1\"","waitTime":0,"recordASField":0,"paraType":"text"}},{"id":5,"index":6,"parentId":2,"type":2,"option":9,"title":"判断条件","sequence":[7,8],"isInLoop":true,"position":2,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0}},{"id":6,"parentId":5,"index":7,"type":3,"option":10,"title":"条件分支","sequence":[9],"isInLoop":true,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"class":"8","value":"","code":"self.myVar == self.outputParameters[\"检测字段\"]","waitTime":0},"position":0},{"id":7,"parentId":5,"index":8,"type":3,"option":10,"title":"条件分支","sequence":[10],"isInLoop":true,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"class":0,"value":"","code":"","waitTime":0},"position":1},{"id":8,"index":9,"parentId":6,"type":0,"option":5,"title":"自定义操作","sequence":[],"isInLoop":true,"position":0,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"clear":0,"codeMode":"3","code":"","waitTime":0,"recordASField":0,"paraType":"text"}},{"id":9,"index":10,"parentId":7,"type":0,"option":5,"title":"自定义操作","sequence":[],"isInLoop":true,"position":0,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"clear":0,"codeMode":"5","code":"self.myVar = self.outputParameters[\"检测字段\"]","waitTime":0,"recordASField":0,"paraType":"text"}}]} \ No newline at end of file diff --git a/.temp_to_pub/EasySpider_windows_x64/execution_instances/46.json b/.temp_to_pub/EasySpider_windows_x64/execution_instances/46.json new file mode 100644 index 0000000..d4e5796 --- /dev/null +++ b/.temp_to_pub/EasySpider_windows_x64/execution_instances/46.json @@ -0,0 +1 @@ +{"id":46,"name":"京东全球版-专业的综合网上购物商城","url":"https://www.jd.com","links":"https://www.jd.com","create_time":"","update_time":"9/5/2023, 3:44:01 PM","version":"0.5.0","saveThreshold":10,"cloudflare":0,"environment":0,"maxViewLength":15,"recordLog":1,"outputFormat":"xlsx","saveName":"current_time","inputExcel":"","startFromExit":0,"containJudge":true,"desc":"https://www.jd.com","inputParameters":[{"id":0,"name":"urlList_0","nodeId":1,"nodeName":"点击元素","value":"https://www.jd.com","desc":"要采集的网址列表,多行以\\n分开","type":"text","exampleValue":"https://www.jd.com"},{"id":1,"name":"loopTimes_循环_1","nodeId":2,"nodeName":"循环","desc":"循环循环执行的次数(0代表无限循环)","type":"int","exampleValue":0,"value":0}],"outputParameters":[{"id":0,"name":"检测字段","desc":"","type":"text","recordASField":0,"exampleValue":"/手机/数码"},{"id":1,"name":"自定义操作","desc":"自定义操作返回的数据","type":"text","recordASField":0,"exampleValue":""},{"id":2,"name":"自定义操作","desc":"自定义操作返回的数据","type":"text","recordASField":0,"exampleValue":""},{"id":3,"name":"自定义操作","desc":"自定义操作返回的数据","type":"text","recordASField":0,"exampleValue":""}],"graph":[{"index":0,"id":0,"parentId":0,"type":-1,"option":0,"title":"root","sequence":[5,2],"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0},"isInLoop":false},{"id":3,"index":1,"parentId":2,"type":0,"option":1,"title":"点击元素","sequence":[],"isInLoop":true,"position":0,"parameters":{"useLoop":false,"xpath":"","wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"url":"https://www.jd.com","links":"https://www.jd.com","maxWaitTime":10,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"cookies":""}},{"id":2,"index":2,"parentId":0,"type":1,"option":8,"title":"循环","sequence":[1,3,6],"isInLoop":false,"position":1,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"//div","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"loopType":0,"pathList":"","textList":"","code":"","waitTime":0,"exitCount":0,"historyWait":2,"breakMode":0,"breakCode":"","breakCodeWaitTime":0}},{"id":4,"index":3,"parentId":2,"type":0,"option":3,"title":"提取数据","sequence":[],"isInLoop":true,"position":1,"parameters":{"history":4,"tabIndex":-1,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"clear":0,"paras":[{"nodeType":0,"contentType":0,"relative":false,"name":"检测字段","desc":"","extractType":0,"relativeXPath":"//*[@id=\"hotwords\"]/a[1]","allXPaths":["/html/body/div[6]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]","//div[contains(., '/手机/数码')]","//DIV[@class='LeftSide_menu_item__SBMWC LeftSide_text_space__2UhbG LeftSide_menu_hover__OCHiO']","/html/body/div[last()-5]/div/div[last()-4]/div/div[last()-2]/div/div/div/div[last()-1]/div[last()-12]"],"exampleValues":[{"num":0,"value":"/手机/数码"}],"unique_index":"16i23xj4p54lm5zgdca","iframe":false,"default":"","paraType":"text","recordASField":0,"beforeJS":"","beforeJSWaitTime":0,"JS":"","JSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"downloadPic":0}]}},{"id":-1,"index":4,"parentId":2,"type":0,"option":5,"title":"自定义操作","sequence":[],"isInLoop":true,"position":2,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"clear":0,"codeMode":"5","code":"","waitTime":0,"recordASField":0,"paraType":"text"}},{"id":1,"index":5,"parentId":0,"type":0,"option":5,"title":"自定义操作","sequence":[],"isInLoop":false,"position":0,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"clear":0,"codeMode":"5","code":"self.myVar = \"-1\"","waitTime":0,"recordASField":0,"paraType":"text"}},{"id":5,"index":6,"parentId":2,"type":2,"option":9,"title":"判断条件","sequence":[7,8],"isInLoop":true,"position":2,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0}},{"id":6,"parentId":5,"index":7,"type":3,"option":10,"title":"条件分支","sequence":[9],"isInLoop":true,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"class":"8","value":"","code":"self.myVar == self.outputParameters[\"检测字段\"]","waitTime":0},"position":0},{"id":7,"parentId":5,"index":8,"type":3,"option":10,"title":"条件分支","sequence":[10],"isInLoop":true,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"class":0,"value":"","code":"","waitTime":0},"position":1},{"id":8,"index":9,"parentId":6,"type":0,"option":5,"title":"自定义操作","sequence":[],"isInLoop":true,"position":0,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"clear":0,"codeMode":"3","code":"","waitTime":0,"recordASField":0,"paraType":"text"}},{"id":9,"index":10,"parentId":7,"type":0,"option":5,"title":"自定义操作","sequence":[],"isInLoop":true,"position":0,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"clear":0,"codeMode":"5","code":"self.myVar = self.outputParameters[\"检测字段\"]","waitTime":0,"recordASField":0,"paraType":"text"}}]} \ No newline at end of file diff --git a/.temp_to_pub/EasySpider_windows_x64/execution_instances/47.json b/.temp_to_pub/EasySpider_windows_x64/execution_instances/47.json new file mode 100644 index 0000000..2351345 --- /dev/null +++ b/.temp_to_pub/EasySpider_windows_x64/execution_instances/47.json @@ -0,0 +1 @@ +{"id":47,"name":"京东全球版-专业的综合网上购物商城","url":"https://www.jd.com","links":"https://www.jd.com","create_time":"","update_time":"9/5/2023, 3:44:29 PM","version":"0.5.0","saveThreshold":10,"cloudflare":0,"environment":0,"maxViewLength":15,"recordLog":1,"outputFormat":"xlsx","saveName":"current_time","inputExcel":"","startFromExit":0,"containJudge":true,"desc":"https://www.jd.com","inputParameters":[{"id":0,"name":"urlList_0","nodeId":1,"nodeName":"点击元素","value":"https://www.jd.com","desc":"要采集的网址列表,多行以\\n分开","type":"text","exampleValue":"https://www.jd.com"},{"id":1,"name":"loopText_1","nodeId":2,"nodeName":"循环","desc":"要输入的文本/网址,多行以\\n分开","type":"text","exampleValue":"1\n1\n1\n1\n1\n1\n1\n","value":"1\n1\n1\n1\n1\n1\n1\n"}],"outputParameters":[{"id":0,"name":"检测字段","desc":"","type":"text","recordASField":0,"exampleValue":"/手机/数码"},{"id":1,"name":"自定义操作","desc":"自定义操作返回的数据","type":"text","recordASField":0,"exampleValue":""},{"id":2,"name":"自定义操作","desc":"自定义操作返回的数据","type":"text","recordASField":0,"exampleValue":""},{"id":3,"name":"自定义操作","desc":"自定义操作返回的数据","type":"text","recordASField":0,"exampleValue":""}],"graph":[{"index":0,"id":0,"parentId":0,"type":-1,"option":0,"title":"root","sequence":[5,2],"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0},"isInLoop":false},{"id":3,"index":1,"parentId":2,"type":0,"option":1,"title":"点击元素","sequence":[],"isInLoop":true,"position":0,"parameters":{"useLoop":false,"xpath":"","wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"url":"https://www.jd.com","links":"https://www.jd.com","maxWaitTime":10,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"cookies":""}},{"id":2,"index":2,"parentId":0,"type":1,"option":8,"title":"循环","sequence":[1,3,6],"isInLoop":false,"position":1,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"//div","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"loopType":"3","pathList":"","textList":"1\r\n1\r\n1\r\n1\r\n1\r\n1\r\n1\r\n","code":"","waitTime":0,"exitCount":0,"historyWait":2,"breakMode":0,"breakCode":"","breakCodeWaitTime":0}},{"id":4,"index":3,"parentId":2,"type":0,"option":3,"title":"提取数据","sequence":[],"isInLoop":true,"position":1,"parameters":{"history":4,"tabIndex":-1,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"clear":0,"paras":[{"nodeType":0,"contentType":0,"relative":false,"name":"检测字段","desc":"","extractType":0,"relativeXPath":"//*[@id=\"hotwords\"]/a[1]","allXPaths":["/html/body/div[6]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]","//div[contains(., '/手机/数码')]","//DIV[@class='LeftSide_menu_item__SBMWC LeftSide_text_space__2UhbG LeftSide_menu_hover__OCHiO']","/html/body/div[last()-5]/div/div[last()-4]/div/div[last()-2]/div/div/div/div[last()-1]/div[last()-12]"],"exampleValues":[{"num":0,"value":"/手机/数码"}],"unique_index":"16i23xj4p54lm5zgdca","iframe":false,"default":"","paraType":"text","recordASField":0,"beforeJS":"","beforeJSWaitTime":0,"JS":"","JSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"downloadPic":0}]}},{"id":-1,"index":4,"parentId":2,"type":0,"option":5,"title":"自定义操作","sequence":[],"isInLoop":true,"position":2,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"clear":0,"codeMode":"5","code":"","waitTime":0,"recordASField":0,"paraType":"text"}},{"id":1,"index":5,"parentId":0,"type":0,"option":5,"title":"自定义操作","sequence":[],"isInLoop":false,"position":0,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"clear":0,"codeMode":"5","code":"self.myVar = \"-1\"","waitTime":0,"recordASField":0,"paraType":"text"}},{"id":5,"index":6,"parentId":2,"type":2,"option":9,"title":"判断条件","sequence":[7,8],"isInLoop":true,"position":2,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0}},{"id":6,"parentId":5,"index":7,"type":3,"option":10,"title":"条件分支","sequence":[9],"isInLoop":true,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"class":"8","value":"","code":"self.myVar == self.outputParameters[\"检测字段\"]","waitTime":0},"position":0},{"id":7,"parentId":5,"index":8,"type":3,"option":10,"title":"条件分支","sequence":[10],"isInLoop":true,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"class":0,"value":"","code":"","waitTime":0},"position":1},{"id":8,"index":9,"parentId":6,"type":0,"option":5,"title":"自定义操作","sequence":[],"isInLoop":true,"position":0,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"clear":0,"codeMode":"3","code":"","waitTime":0,"recordASField":0,"paraType":"text"}},{"id":9,"index":10,"parentId":7,"type":0,"option":5,"title":"自定义操作","sequence":[],"isInLoop":true,"position":0,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"clear":0,"codeMode":"5","code":"self.myVar = self.outputParameters[\"检测字段\"]","waitTime":0,"recordASField":0,"paraType":"text"}}]} \ No newline at end of file diff --git a/.temp_to_pub/EasySpider_windows_x64/execution_instances/48.json b/.temp_to_pub/EasySpider_windows_x64/execution_instances/48.json new file mode 100644 index 0000000..5b26076 --- /dev/null +++ b/.temp_to_pub/EasySpider_windows_x64/execution_instances/48.json @@ -0,0 +1 @@ +{"id":48,"name":"京东全球版-专业的综合网上购物商城","url":"https://www.jd.com","links":"https://www.jd.com","create_time":"","update_time":"9/5/2023, 3:45:57 PM","version":"0.5.0","saveThreshold":10,"cloudflare":0,"environment":0,"maxViewLength":15,"recordLog":1,"outputFormat":"xlsx","saveName":"current_time","inputExcel":"","startFromExit":0,"containJudge":true,"desc":"https://www.jd.com","inputParameters":[{"id":0,"name":"urlList_0","nodeId":1,"nodeName":"点击元素","value":"https://www.jd.com","desc":"要采集的网址列表,多行以\\n分开","type":"text","exampleValue":"https://www.jd.com"},{"id":1,"name":"loopText_1","nodeId":2,"nodeName":"循环","desc":"要输入的文本/网址,多行以\\n分开","type":"text","exampleValue":"1\n1\n1\n1\n1\n1\n1\n","value":"1\n1\n1\n1\n1\n1\n1\n"}],"outputParameters":[{"id":0,"name":"检测字段","desc":"","type":"text","recordASField":0,"exampleValue":"/手机/数码"},{"id":1,"name":"自定义操作","desc":"自定义操作返回的数据","type":"text","recordASField":0,"exampleValue":""},{"id":2,"name":"自定义操作","desc":"自定义操作返回的数据","type":"text","recordASField":0,"exampleValue":""},{"id":3,"name":"自定义操作","desc":"自定义操作返回的数据","type":"text","recordASField":0,"exampleValue":""},{"id":4,"name":"自定义操作","desc":"自定义操作返回的数据","type":"text","recordASField":0,"exampleValue":""}],"graph":[{"index":0,"id":0,"parentId":0,"type":-1,"option":0,"title":"root","sequence":[5,2],"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0},"isInLoop":false},{"id":3,"index":1,"parentId":2,"type":0,"option":1,"title":"点击元素","sequence":[],"isInLoop":true,"position":0,"parameters":{"useLoop":false,"xpath":"","wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"url":"https://www.jd.com","links":"https://www.jd.com","maxWaitTime":10,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"cookies":""}},{"id":2,"index":2,"parentId":0,"type":1,"option":8,"title":"循环","sequence":[1,3,11,6],"isInLoop":false,"position":1,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"//div","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"loopType":"3","pathList":"","textList":"1\r\n1\r\n1\r\n1\r\n1\r\n1\r\n1\r\n","code":"","waitTime":0,"exitCount":0,"historyWait":2,"breakMode":0,"breakCode":"","breakCodeWaitTime":0}},{"id":4,"index":3,"parentId":2,"type":0,"option":3,"title":"提取数据","sequence":[],"isInLoop":true,"position":1,"parameters":{"history":4,"tabIndex":-1,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"clear":0,"paras":[{"nodeType":0,"contentType":0,"relative":false,"name":"检测字段","desc":"","extractType":0,"relativeXPath":"//*[@id=\"hotwords\"]/a[1]","allXPaths":["/html/body/div[6]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]","//div[contains(., '/手机/数码')]","//DIV[@class='LeftSide_menu_item__SBMWC LeftSide_text_space__2UhbG LeftSide_menu_hover__OCHiO']","/html/body/div[last()-5]/div/div[last()-4]/div/div[last()-2]/div/div/div/div[last()-1]/div[last()-12]"],"exampleValues":[{"num":0,"value":"/手机/数码"}],"unique_index":"16i23xj4p54lm5zgdca","iframe":false,"default":"","paraType":"text","recordASField":0,"beforeJS":"","beforeJSWaitTime":0,"JS":"","JSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"downloadPic":0}]}},{"id":-1,"index":4,"parentId":2,"type":0,"option":5,"title":"自定义操作","sequence":[],"isInLoop":true,"position":2,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"clear":0,"codeMode":"5","code":"","waitTime":0,"recordASField":0,"paraType":"text"}},{"id":1,"index":5,"parentId":0,"type":0,"option":5,"title":"自定义操作","sequence":[],"isInLoop":false,"position":0,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"clear":0,"codeMode":"5","code":"self.myVar = \"-1\"","waitTime":0,"recordASField":0,"paraType":"text"}},{"id":6,"index":6,"parentId":2,"type":2,"option":9,"title":"判断条件","sequence":[7,8],"isInLoop":true,"position":3,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0}},{"id":7,"parentId":6,"index":7,"type":3,"option":10,"title":"条件分支","sequence":[9],"isInLoop":true,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"class":"8","value":"","code":"self.myVar == self.outputParameters[\"检测字段\"]","waitTime":0},"position":0},{"id":8,"parentId":6,"index":8,"type":3,"option":10,"title":"条件分支","sequence":[10],"isInLoop":true,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"class":0,"value":"","code":"","waitTime":0},"position":1},{"id":9,"index":9,"parentId":7,"type":0,"option":5,"title":"自定义操作","sequence":[],"isInLoop":true,"position":0,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"clear":0,"codeMode":"3","code":"","waitTime":0,"recordASField":0,"paraType":"text"}},{"id":10,"index":10,"parentId":8,"type":0,"option":5,"title":"自定义操作","sequence":[],"isInLoop":true,"position":0,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"clear":0,"codeMode":"5","code":"self.myVar = self.outputParameters[\"检测字段\"]\nprint(\"NEXT\")","waitTime":0,"recordASField":0,"paraType":"text"}},{"id":5,"index":11,"parentId":2,"type":0,"option":5,"title":"自定义操作","sequence":[],"isInLoop":true,"position":2,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"clear":0,"codeMode":"5","code":"print(\"Waiting\")","waitTime":0,"recordASField":0,"paraType":"text"}}]} \ No newline at end of file diff --git a/.temp_to_pub/EasySpider_windows_x64/execution_instances/49.json b/.temp_to_pub/EasySpider_windows_x64/execution_instances/49.json new file mode 100644 index 0000000..e5bd579 --- /dev/null +++ b/.temp_to_pub/EasySpider_windows_x64/execution_instances/49.json @@ -0,0 +1 @@ +{"id":49,"name":"京东全球版-专业的综合网上购物商城","url":"https://www.jd.com","links":"https://www.jd.com","create_time":"","update_time":"9/5/2023, 3:46:47 PM","version":"0.5.0","saveThreshold":10,"cloudflare":0,"environment":0,"maxViewLength":15,"recordLog":1,"outputFormat":"xlsx","saveName":"current_time","inputExcel":"","startFromExit":0,"containJudge":true,"desc":"https://www.jd.com","inputParameters":[{"id":0,"name":"urlList_0","nodeId":1,"nodeName":"点击元素","value":"https://www.jd.com","desc":"要采集的网址列表,多行以\\n分开","type":"text","exampleValue":"https://www.jd.com"},{"id":1,"name":"loopText_1","nodeId":2,"nodeName":"循环","desc":"要输入的文本/网址,多行以\\n分开","type":"text","exampleValue":"1\n1\n1\n1\n1\n1\n1\n","value":"1\n1\n1\n1\n1\n1\n1\n"}],"outputParameters":[{"id":0,"name":"检测字段","desc":"","type":"text","recordASField":0,"exampleValue":"/手机/数码"},{"id":1,"name":"自定义操作","desc":"自定义操作返回的数据","type":"text","recordASField":0,"exampleValue":""},{"id":2,"name":"自定义操作","desc":"自定义操作返回的数据","type":"text","recordASField":0,"exampleValue":""},{"id":3,"name":"自定义操作","desc":"自定义操作返回的数据","type":"text","recordASField":0,"exampleValue":""},{"id":4,"name":"自定义操作","desc":"自定义操作返回的数据","type":"text","recordASField":0,"exampleValue":""},{"id":5,"name":"自定义操作","desc":"自定义操作返回的数据","type":"text","recordASField":0,"exampleValue":""}],"graph":[{"index":0,"id":0,"parentId":0,"type":-1,"option":0,"title":"root","sequence":[5,2],"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0},"isInLoop":false},{"id":3,"index":1,"parentId":2,"type":0,"option":1,"title":"点击元素","sequence":[],"isInLoop":true,"position":0,"parameters":{"useLoop":false,"xpath":"","wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"url":"https://www.jd.com","links":"https://www.jd.com","maxWaitTime":10,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"cookies":""}},{"id":2,"index":2,"parentId":0,"type":1,"option":8,"title":"循环","sequence":[1,3,11,6],"isInLoop":false,"position":1,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"//div","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"loopType":"3","pathList":"","textList":"1\r\n1\r\n1\r\n1\r\n1\r\n1\r\n1\r\n","code":"","waitTime":0,"exitCount":0,"historyWait":2,"breakMode":0,"breakCode":"","breakCodeWaitTime":0}},{"id":4,"index":3,"parentId":2,"type":0,"option":3,"title":"提取数据","sequence":[],"isInLoop":true,"position":1,"parameters":{"history":4,"tabIndex":-1,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"clear":0,"paras":[{"nodeType":0,"contentType":0,"relative":false,"name":"检测字段","desc":"","extractType":0,"relativeXPath":"//*[@id=\"hotwords\"]/a[1]","allXPaths":["/html/body/div[6]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]","//div[contains(., '/手机/数码')]","//DIV[@class='LeftSide_menu_item__SBMWC LeftSide_text_space__2UhbG LeftSide_menu_hover__OCHiO']","/html/body/div[last()-5]/div/div[last()-4]/div/div[last()-2]/div/div/div/div[last()-1]/div[last()-12]"],"exampleValues":[{"num":0,"value":"/手机/数码"}],"unique_index":"16i23xj4p54lm5zgdca","iframe":false,"default":"","paraType":"text","recordASField":0,"beforeJS":"","beforeJSWaitTime":0,"JS":"","JSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"downloadPic":0}]}},{"id":-1,"index":4,"parentId":2,"type":0,"option":5,"title":"自定义操作","sequence":[],"isInLoop":true,"position":2,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"clear":0,"codeMode":"5","code":"","waitTime":0,"recordASField":0,"paraType":"text"}},{"id":1,"index":5,"parentId":0,"type":0,"option":5,"title":"自定义操作","sequence":[],"isInLoop":false,"position":0,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"clear":0,"codeMode":"5","code":"self.myVar = \"-1\"","waitTime":0,"recordASField":0,"paraType":"text"}},{"id":6,"index":6,"parentId":2,"type":2,"option":9,"title":"判断条件","sequence":[7,8],"isInLoop":true,"position":3,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0}},{"id":7,"parentId":6,"index":7,"type":3,"option":10,"title":"条件分支","sequence":[9,12],"isInLoop":true,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"class":"8","value":"","code":"self.myVar == self.outputParameters[\"检测字段\"]","waitTime":0},"position":0},{"id":8,"parentId":6,"index":8,"type":3,"option":10,"title":"条件分支","sequence":[10],"isInLoop":true,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"class":0,"value":"","code":"","waitTime":0},"position":1},{"id":9,"index":9,"parentId":7,"type":0,"option":5,"title":"自定义操作","sequence":[],"isInLoop":true,"position":0,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"clear":0,"codeMode":"3","code":"","waitTime":0,"recordASField":0,"paraType":"text"}},{"id":11,"index":10,"parentId":8,"type":0,"option":5,"title":"自定义操作","sequence":[],"isInLoop":true,"position":0,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"clear":0,"codeMode":"5","code":"self.myVar = self.outputParameters[\"检测字段\"]\nprint(\"NEXT\")","waitTime":0,"recordASField":0,"paraType":"text"}},{"id":5,"index":11,"parentId":2,"type":0,"option":5,"title":"自定义操作","sequence":[],"isInLoop":true,"position":2,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"clear":0,"codeMode":"5","code":"print(\"Waiting\")","waitTime":0,"recordASField":0,"paraType":"text"}},{"id":10,"index":12,"parentId":7,"type":0,"option":5,"title":"自定义操作","sequence":[],"isInLoop":true,"position":1,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"clear":0,"codeMode":0,"code":"print(\"BREAK\")","waitTime":0,"recordASField":0,"paraType":"text"}}]} \ No newline at end of file diff --git a/.temp_to_pub/EasySpider_windows_x64/execution_instances/50.json b/.temp_to_pub/EasySpider_windows_x64/execution_instances/50.json new file mode 100644 index 0000000..75ce369 --- /dev/null +++ b/.temp_to_pub/EasySpider_windows_x64/execution_instances/50.json @@ -0,0 +1 @@ +{"id":50,"name":"京东全球版-专业的综合网上购物商城","url":"https://www.jd.com","links":"https://www.jd.com","create_time":"","update_time":"9/5/2023, 3:47:28 PM","version":"0.5.0","saveThreshold":10,"cloudflare":0,"environment":0,"maxViewLength":15,"recordLog":1,"outputFormat":"xlsx","saveName":"current_time","inputExcel":"","startFromExit":0,"containJudge":true,"desc":"https://www.jd.com","inputParameters":[{"id":0,"name":"urlList_0","nodeId":1,"nodeName":"点击元素","value":"https://www.jd.com","desc":"要采集的网址列表,多行以\\n分开","type":"text","exampleValue":"https://www.jd.com"},{"id":1,"name":"loopText_1","nodeId":2,"nodeName":"循环","desc":"要输入的文本/网址,多行以\\n分开","type":"text","exampleValue":"1\n1\n1\n1\n1\n1\n1\n","value":"1\n1\n1\n1\n1\n1\n1\n"}],"outputParameters":[{"id":0,"name":"检测字段","desc":"","type":"text","recordASField":0,"exampleValue":"/手机/数码"},{"id":1,"name":"自定义操作","desc":"自定义操作返回的数据","type":"text","recordASField":0,"exampleValue":""},{"id":2,"name":"自定义操作","desc":"自定义操作返回的数据","type":"text","recordASField":0,"exampleValue":""},{"id":3,"name":"自定义操作","desc":"自定义操作返回的数据","type":"text","recordASField":0,"exampleValue":""},{"id":4,"name":"自定义操作","desc":"自定义操作返回的数据","type":"text","recordASField":0,"exampleValue":""},{"id":5,"name":"自定义操作","desc":"自定义操作返回的数据","type":"text","recordASField":0,"exampleValue":""}],"graph":[{"index":0,"id":0,"parentId":0,"type":-1,"option":0,"title":"root","sequence":[5,2],"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0},"isInLoop":false},{"id":3,"index":1,"parentId":2,"type":0,"option":1,"title":"点击元素","sequence":[],"isInLoop":true,"position":0,"parameters":{"useLoop":false,"xpath":"","wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"url":"https://www.jd.com","links":"https://www.jd.com","maxWaitTime":10,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"cookies":""}},{"id":2,"index":2,"parentId":0,"type":1,"option":8,"title":"循环","sequence":[1,3,11,6],"isInLoop":false,"position":1,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"//div","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"loopType":"3","pathList":"","textList":"1\r\n1\r\n1\r\n1\r\n1\r\n1\r\n1\r\n","code":"","waitTime":0,"exitCount":0,"historyWait":2,"breakMode":0,"breakCode":"","breakCodeWaitTime":0}},{"id":4,"index":3,"parentId":2,"type":0,"option":3,"title":"提取数据","sequence":[],"isInLoop":true,"position":1,"parameters":{"history":4,"tabIndex":-1,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"clear":0,"paras":[{"nodeType":0,"contentType":0,"relative":false,"name":"检测字段","desc":"","extractType":0,"relativeXPath":"//*[@id=\"hotwords\"]/a[1]","allXPaths":["/html/body/div[6]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]","//div[contains(., '/手机/数码')]","//DIV[@class='LeftSide_menu_item__SBMWC LeftSide_text_space__2UhbG LeftSide_menu_hover__OCHiO']","/html/body/div[last()-5]/div/div[last()-4]/div/div[last()-2]/div/div/div/div[last()-1]/div[last()-12]"],"exampleValues":[{"num":0,"value":"/手机/数码"}],"unique_index":"16i23xj4p54lm5zgdca","iframe":false,"default":"","paraType":"text","recordASField":0,"beforeJS":"","beforeJSWaitTime":0,"JS":"","JSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"downloadPic":0}]}},{"id":-1,"index":4,"parentId":2,"type":0,"option":5,"title":"自定义操作","sequence":[],"isInLoop":true,"position":2,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"clear":0,"codeMode":"5","code":"","waitTime":0,"recordASField":0,"paraType":"text"}},{"id":1,"index":5,"parentId":0,"type":0,"option":5,"title":"自定义操作","sequence":[],"isInLoop":false,"position":0,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"clear":0,"codeMode":"5","code":"self.myVar = \"-1\"","waitTime":0,"recordASField":0,"paraType":"text"}},{"id":6,"index":6,"parentId":2,"type":2,"option":9,"title":"判断条件","sequence":[7,8],"isInLoop":true,"position":3,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0}},{"id":7,"parentId":6,"index":7,"type":3,"option":10,"title":"条件分支","sequence":[9,12],"isInLoop":true,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"class":"8","value":"","code":"self.myVar == self.outputParameters[\"检测字段\"]","waitTime":0},"position":0},{"id":8,"parentId":6,"index":8,"type":3,"option":10,"title":"条件分支","sequence":[10],"isInLoop":true,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"class":0,"value":"","code":"","waitTime":0},"position":1},{"id":9,"index":9,"parentId":7,"type":0,"option":5,"title":"自定义操作","sequence":[],"isInLoop":true,"position":0,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"clear":0,"codeMode":"3","code":"","waitTime":0,"recordASField":0,"paraType":"text"}},{"id":11,"index":10,"parentId":8,"type":0,"option":5,"title":"自定义操作","sequence":[],"isInLoop":true,"position":0,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"clear":0,"codeMode":"5","code":"self.myVar = self.outputParameters[\"检测字段\"]\nprint(\"NEXT\")","waitTime":0,"recordASField":0,"paraType":"text"}},{"id":5,"index":11,"parentId":2,"type":0,"option":5,"title":"自定义操作","sequence":[],"isInLoop":true,"position":2,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"clear":0,"codeMode":"5","code":"print(\"Waiting\")","waitTime":0,"recordASField":0,"paraType":"text"}},{"id":10,"index":12,"parentId":7,"type":0,"option":5,"title":"自定义操作","sequence":[],"isInLoop":true,"position":1,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"clear":0,"codeMode":"5","code":"print(\"BREAK\")","waitTime":0,"recordASField":0,"paraType":"text"}}]} \ No newline at end of file diff --git a/.temp_to_pub/EasySpider_windows_x64/info.log b/.temp_to_pub/EasySpider_windows_x64/info.log new file mode 100644 index 0000000..60aaf56 --- /dev/null +++ b/.temp_to_pub/EasySpider_windows_x64/info.log @@ -0,0 +1,706 @@ +Server has started. +server_address: http://localhost:8074 +x64 +D:\Documents\Projects\EasySpider\.temp_to_pub\EasySpider_windows_x64\EasySpider\resources\app\chrome_win64\chromedriver_win64.exe D:\Documents\Projects\EasySpider\.temp_to_pub\EasySpider_windows_x64\EasySpider\resources\app\chrome_win64\chrome.exe D:\Documents\Projects\EasySpider\.temp_to_pub\EasySpider_windows_x64\EasySpider\resources\app\chrome_win64\execute.bat +win32 +Server listening on http://localhost:8075 +Not Windows 7 + + +GET A MESSAGE: { type: 0, message: { id: 2 } } +set socket_flowchart + + +GET A MESSAGE: { type: 0, message: { id: 0 } } +set socket_window + + +GET A MESSAGE: { type: 0, message: { id: 1 } } +set socket_start + + +GET A MESSAGE: { type: 0, message: { id: 'C91060802', title: 'Start' } } + + +GET A MESSAGE: { type: 0, message: { id: 1 } } +set socket_start + + +GET A MESSAGE: { type: 0, message: { id: 'C42837719', title: 'New Task' } } +Set handle_pair for id: C91060802 to DE25B0D62688DC2CEAA4858701D1C25A , title is: Start + + +GET A MESSAGE: { + type: 3, + from: 0, + message: { + pipe: '{"type":"openPage","url":"https://www.jd.com","links":"https://www.jd.com"}' + } +} +FROM Browser: { + type: 'openPage', + url: 'https://www.jd.com', + links: 'https://www.jd.com' +} +Iframe: undefined + + +GET A MESSAGE: { type: 1, message: { id: -1 } } +Window { + id: 26086070, + processId: 138328, + path: 'D:\\Documents\\Projects\\EasySpider\\.temp_to_pub\\EasySpider_windows_x64\\EasySpider\\resources\\app\\chrome_win64\\chrome.exe' +} + + +GET A MESSAGE: { type: 0, message: { id: 'C73544475', title: '京东全球版-专业的综合网上购物商城' } } +Set handle_pair for id: C42837719 to DE25B0D62688DC2CEAA4858701D1C25A , title is: New Task +Set handle_pair for id: C73544475 to DE25B0D62688DC2CEAA4858701D1C25A , title is: 京东全球版-专业的综合网上购物商城 + + +GET A MESSAGE: { + type: 3, + from: 0, + message: { + pipe: `{"type":"singleCollect","history":4,"tabIndex":-1,"iframe":false,"parameters":[{"nodeType":0,"contentType":0,"relative":false,"name":"参数1_文本","desc":"","extractType":0,"relativeXPath":"/html/body/div[6]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]","allXPaths":["/html/body/div[6]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]","//div[contains(., '/手机/数码')]","//DIV[@class='LeftSide_menu_item__SBMWC LeftSide_text_space__2UhbG LeftSide_menu_hover__OCHiO']","/html/body/div[last()-5]/div/div[last()-4]/div/div[last()-2]/div/div/div/div[last()-1]/div[last()-12]"],"exampleValues":[{"num":0,"value":"/手机/数码"}],"unique_index":"16i23xj4p54lm5zgdca","iframe":false}]}` + } +} +FROM Browser: { + type: 'singleCollect', + history: 4, + tabIndex: -1, + iframe: false, + parameters: [ + { + nodeType: 0, + contentType: 0, + relative: false, + name: '参数1_文本', + desc: '', + extractType: 0, + relativeXPath: '/html/body/div[6]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]', + allXPaths: [Array], + exampleValues: [Array], + unique_index: '16i23xj4p54lm5zgdca', + iframe: false + } + ] +} +Iframe: false + + +GET A MESSAGE: { type: 3, from: 1, message: { pipe: '{"type":0,"value":2}' } } +FROM Flowchart: { type: 0, value: 2 } + + +GET A MESSAGE: { type: 0, message: { id: 1 } } +set socket_start + + +GET A MESSAGE: { type: 0, message: { id: 1 } } +set socket_start + + +GET A MESSAGE: { + type: 5, + message: { + id: -1, + user_data_folder: '', + mysql_config_path: '-1', + execute_type: 1 + } +} +{ + id: -1, + user_data_folder: '', + mysql_config_path: '-1', + execute_type: 1 +} +0.json +1.json +10.json +11.json +12.json +13.json +14.json +15.json +16.json +17.json +18.json +19.json +2.json +20.json +21.json +22.json +23.json +24.json +25.json +26.json +27.json +28.json +29.json +3.json +30.json +31.json +32.json +33.json +34.json +35.json +36.json +37.json +38.json +39.json +4.json +40.json +41.json +42.json +43.json +44.json +5.json +6.json +7.json +8.json +9.json + + +GET A MESSAGE: { + type: 5, + message: { + id: 45, + user_data_folder: '', + mysql_config_path: './mysql_config.json', + execute_type: 1 + } +} +{ + id: 45, + user_data_folder: '', + mysql_config_path: './mysql_config.json', + execute_type: 1 +} + +D:\Documents\Projects\EasySpider\.temp_to_pub\EasySpider_windows_x64>if exist EasySpider (start EasySpider/resources/app/chrome_win64/easyspider_executestage.exe --id [45] --server_address http://localhost:8074 --user_data 0 ) else (if exist resources ( +cd ../ + start EasySpider/resources/app/chrome_win64/easyspider_executestage.exe --id [45] --server_address http://localhost:8074 --user_data 0 +) else (start chrome_win64/easyspider_executestage.exe --id [45] --server_address http://localhost:8074 --user_data 0 ) ) + + + +GET A MESSAGE: { type: 0, message: { id: 2 } } +set socket_flowchart + + +GET A MESSAGE: { type: 0, message: { id: 2 } } +set socket_flowchart + + +GET A MESSAGE: { type: 0, message: { id: 1 } } +set socket_start + + +GET A MESSAGE: { + type: 5, + message: { + id: -1, + user_data_folder: '', + mysql_config_path: '-1', + execute_type: 1 + } +} +{ + id: -1, + user_data_folder: '', + mysql_config_path: '-1', + execute_type: 1 +} +0.json +1.json +10.json +11.json +12.json +13.json +14.json +15.json +16.json +17.json +18.json +19.json +2.json +20.json +21.json +22.json +23.json +24.json +25.json +26.json +27.json +28.json +29.json +3.json +30.json +31.json +32.json +33.json +34.json +35.json +36.json +37.json +38.json +39.json +4.json +40.json +41.json +42.json +43.json +44.json +45.json +5.json +6.json +7.json +8.json +9.json + + +GET A MESSAGE: { + type: 5, + message: { + id: 46, + user_data_folder: '', + mysql_config_path: './mysql_config.json', + execute_type: 1 + } +} +{ + id: 46, + user_data_folder: '', + mysql_config_path: './mysql_config.json', + execute_type: 1 +} + +D:\Documents\Projects\EasySpider\.temp_to_pub\EasySpider_windows_x64>if exist EasySpider (start EasySpider/resources/app/chrome_win64/easyspider_executestage.exe --id [46] --server_address http://localhost:8074 --user_data 0 ) else (if exist resources ( +cd ../ + start EasySpider/resources/app/chrome_win64/easyspider_executestage.exe --id [46] --server_address http://localhost:8074 --user_data 0 +) else (start chrome_win64/easyspider_executestage.exe --id [46] --server_address http://localhost:8074 --user_data 0 ) ) + + + +GET A MESSAGE: { type: 0, message: { id: 2 } } +set socket_flowchart + + +GET A MESSAGE: { type: 0, message: { id: 1 } } +set socket_start + + +GET A MESSAGE: { + type: 5, + message: { + id: -1, + user_data_folder: '', + mysql_config_path: '-1', + execute_type: 1 + } +} +{ + id: -1, + user_data_folder: '', + mysql_config_path: '-1', + execute_type: 1 +} +0.json +1.json +10.json +11.json +12.json +13.json +14.json +15.json +16.json +17.json +18.json +19.json +2.json +20.json +21.json +22.json +23.json +24.json +25.json +26.json +27.json +28.json +29.json +3.json +30.json +31.json +32.json +33.json +34.json +35.json +36.json +37.json +38.json +39.json +4.json +40.json +41.json +42.json +43.json +44.json +45.json +46.json +5.json +6.json +7.json +8.json +9.json + + +GET A MESSAGE: { + type: 5, + message: { + id: 47, + user_data_folder: '', + mysql_config_path: './mysql_config.json', + execute_type: 1 + } +} +{ + id: 47, + user_data_folder: '', + mysql_config_path: './mysql_config.json', + execute_type: 1 +} + +D:\Documents\Projects\EasySpider\.temp_to_pub\EasySpider_windows_x64>if exist EasySpider (start EasySpider/resources/app/chrome_win64/easyspider_executestage.exe --id [47] --server_address http://localhost:8074 --user_data 0 ) else (if exist resources ( +cd ../ + start EasySpider/resources/app/chrome_win64/easyspider_executestage.exe --id [47] --server_address http://localhost:8074 --user_data 0 +) else (start chrome_win64/easyspider_executestage.exe --id [47] --server_address http://localhost:8074 --user_data 0 ) ) + + + +GET A MESSAGE: { type: 0, message: { id: 2 } } +set socket_flowchart + + +GET A MESSAGE: { type: 0, message: { id: 1 } } +set socket_start + + +GET A MESSAGE: { + type: 5, + message: { + id: -1, + user_data_folder: '', + mysql_config_path: '-1', + execute_type: 1 + } +} +{ + id: -1, + user_data_folder: '', + mysql_config_path: '-1', + execute_type: 1 +} +0.json +1.json +10.json +11.json +12.json +13.json +14.json +15.json +16.json +17.json +18.json +19.json +2.json +20.json +21.json +22.json +23.json +24.json +25.json +26.json +27.json +28.json +29.json +3.json +30.json +31.json +32.json +33.json +34.json +35.json +36.json +37.json +38.json +39.json +4.json +40.json +41.json +42.json +43.json +44.json +45.json +46.json +47.json +5.json +6.json +7.json +8.json +9.json + + +GET A MESSAGE: { + type: 5, + message: { + id: 48, + user_data_folder: '', + mysql_config_path: './mysql_config.json', + execute_type: 1 + } +} +{ + id: 48, + user_data_folder: '', + mysql_config_path: './mysql_config.json', + execute_type: 1 +} + +D:\Documents\Projects\EasySpider\.temp_to_pub\EasySpider_windows_x64>if exist EasySpider (start EasySpider/resources/app/chrome_win64/easyspider_executestage.exe --id [48] --server_address http://localhost:8074 --user_data 0 ) else (if exist resources ( +cd ../ + start EasySpider/resources/app/chrome_win64/easyspider_executestage.exe --id [48] --server_address http://localhost:8074 --user_data 0 +) else (start chrome_win64/easyspider_executestage.exe --id [48] --server_address http://localhost:8074 --user_data 0 ) ) + + + +GET A MESSAGE: { type: 0, message: { id: 2 } } +set socket_flowchart + + +GET A MESSAGE: { type: 0, message: { id: 1 } } +set socket_start + + +GET A MESSAGE: { + type: 5, + message: { + id: -1, + user_data_folder: '', + mysql_config_path: '-1', + execute_type: 1 + } +} +{ + id: -1, + user_data_folder: '', + mysql_config_path: '-1', + execute_type: 1 +} +0.json +1.json +10.json +11.json +12.json +13.json +14.json +15.json +16.json +17.json +18.json +19.json +2.json +20.json +21.json +22.json +23.json +24.json +25.json +26.json +27.json +28.json +29.json +3.json +30.json +31.json +32.json +33.json +34.json +35.json +36.json +37.json +38.json +39.json +4.json +40.json +41.json +42.json +43.json +44.json +45.json +46.json +47.json +48.json +5.json +6.json +7.json +8.json +9.json + + +GET A MESSAGE: { + type: 5, + message: { + id: 49, + user_data_folder: '', + mysql_config_path: './mysql_config.json', + execute_type: 1 + } +} +{ + id: 49, + user_data_folder: '', + mysql_config_path: './mysql_config.json', + execute_type: 1 +} + +D:\Documents\Projects\EasySpider\.temp_to_pub\EasySpider_windows_x64>if exist EasySpider (start EasySpider/resources/app/chrome_win64/easyspider_executestage.exe --id [49] --server_address http://localhost:8074 --user_data 0 ) else (if exist resources ( +cd ../ + start EasySpider/resources/app/chrome_win64/easyspider_executestage.exe --id [49] --server_address http://localhost:8074 --user_data 0 +) else (start chrome_win64/easyspider_executestage.exe --id [49] --server_address http://localhost:8074 --user_data 0 ) ) + + + +GET A MESSAGE: { type: 0, message: { id: 2 } } +set socket_flowchart + + +GET A MESSAGE: { type: 0, message: { id: 1 } } +set socket_start + + +GET A MESSAGE: { + type: 5, + message: { + id: -1, + user_data_folder: '', + mysql_config_path: '-1', + execute_type: 1 + } +} +{ + id: -1, + user_data_folder: '', + mysql_config_path: '-1', + execute_type: 1 +} +0.json +1.json +10.json +11.json +12.json +13.json +14.json +15.json +16.json +17.json +18.json +19.json +2.json +20.json +21.json +22.json +23.json +24.json +25.json +26.json +27.json +28.json +29.json +3.json +30.json +31.json +32.json +33.json +34.json +35.json +36.json +37.json +38.json +39.json +4.json +40.json +41.json +42.json +43.json +44.json +45.json +46.json +47.json +48.json +49.json +5.json +6.json +7.json +8.json +9.json + + +GET A MESSAGE: { + type: 5, + message: { + id: 50, + user_data_folder: '', + mysql_config_path: './mysql_config.json', + execute_type: 1 + } +} +{ + id: 50, + user_data_folder: '', + mysql_config_path: './mysql_config.json', + execute_type: 1 +} + +D:\Documents\Projects\EasySpider\.temp_to_pub\EasySpider_windows_x64>if exist EasySpider (start EasySpider/resources/app/chrome_win64/easyspider_executestage.exe --id [50] --server_address http://localhost:8074 --user_data 0 ) else (if exist resources ( +cd ../ + start EasySpider/resources/app/chrome_win64/easyspider_executestage.exe --id [50] --server_address http://localhost:8074 --user_data 0 +) else (start chrome_win64/easyspider_executestage.exe --id [50] --server_address http://localhost:8074 --user_data 0 ) ) + + + +GET A MESSAGE: { type: 0, message: { id: 2 } } +set socket_flowchart + + +GET A MESSAGE: { type: 0, message: { id: 2 } } +set socket_flowchart + + +GET A MESSAGE: { type: 0, message: { id: 0 } } +set socket_window + + +GET A MESSAGE: { type: 0, message: { id: 1 } } +set socket_start + + +GET A MESSAGE: { type: 0, message: { id: 'C33333281', title: 'Start' } } + + +GET A MESSAGE: { type: 0, message: { id: 'C71067632', title: 'Task Information' } } +Set handle_pair for id: C33333281 to C16928DEB37478FE68A811407561BFB2 , title is: Start + + +GET A MESSAGE: { type: 0, message: { id: 2 } } +set socket_flowchart + + +GET A MESSAGE: { type: 0, message: { id: 'C91491330', title: '设计流程' } } +Set handle_pair for id: C71067632 to C16928DEB37478FE68A811407561BFB2 , title is: Task Information +Set handle_pair for id: C91491330 to C16928DEB37478FE68A811407561BFB2 , title is: 设计流程 + + +GET A MESSAGE: { type: 6 } +open devtools error diff --git a/.temp_to_pub/EasySpider_windows_x64/tasks/218.json b/.temp_to_pub/EasySpider_windows_x64/tasks/218.json index 27925cb..45571a9 100644 --- a/.temp_to_pub/EasySpider_windows_x64/tasks/218.json +++ b/.temp_to_pub/EasySpider_windows_x64/tasks/218.json @@ -1 +1 @@ -{"id":218,"name":"NUS","url":"https://reboks.nus.edu.sg/","links":"https://reboks.nus.edu.sg/","create_time":"9/5/2023, 12:28:18 PM","update_time":"9/5/2023, 12:36:44 PM","version":"0.5.0","saveThreshold":10,"cloudflare":0,"environment":0,"maxViewLength":15,"recordLog":1,"outputFormat":"xlsx","saveName":"current_time","inputExcel":"","startFromExit":0,"containJudge":false,"desc":"https://reboks.nus.edu.sg/","inputParameters":[{"id":0,"name":"urlList_0","nodeId":1,"nodeName":"打开网页","value":"https://reboks.nus.edu.sg/","desc":"要采集的网址列表,多行以\\n分开","type":"text","exampleValue":"https://reboks.nus.edu.sg/"},{"id":1,"name":"inputText_1","nodeName":"输入文字","nodeId":3,"desc":"要输入的文本,如京东搜索框输入:电脑","type":"text","exampleValue":"nusstu\\e0546263","value":"nusstu\\e0546263"},{"id":2,"name":"inputText_2","nodeName":"输入文字","nodeId":4,"desc":"要输入的文本,如京东搜索框输入:电脑","type":"text","exampleValue":"Qw982311099.","value":"Qw982311099."}],"outputParameters":[],"graph":[{"index":0,"id":0,"parentId":0,"type":-1,"option":0,"title":"root","sequence":[1,2,3,4,5,7,8,10,11,12,13,14,15],"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":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,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"url":"https://reboks.nus.edu.sg/","links":"https://reboks.nus.edu.sg/","maxWaitTime":10,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"cookies":""}},{"id":2,"index":2,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":1,"parameters":{"history":4,"tabIndex":-1,"useLoop":false,"xpath":"//*[contains(@class, \"btn-facebook\")]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[1]/div[1]/div[1]/div[5]/div[2]/div[1]/fieldset[1]/div[1]/div[1]/div[2]/a[1]","//a[contains(., '')]","//A[@class='btn btn-block btn-facebook']","/html/body/div[last()-3]/div/div/div[last()-2]/div/div/fieldset/div/div/div[last()-1]/a[last()-1]"]}},{"id":3,"index":3,"parentId":0,"type":0,"option":4,"title":"输入文字","sequence":[],"isInLoop":false,"position":2,"parameters":{"history":5,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"userNameInput\"]","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"value":"nusstu\\e0546263","index":0,"allXPaths":["/html/body/div[2]/div[2]/div[1]/div[2]/div[1]/div[1]/form[1]/div[2]/div[1]/input[1]","//input[contains(., '')]","id(\"userNameInput\")","//INPUT[@class='text fullWidth']","//INPUT[@name='UserName']","/html/body/div[last()-3]/div/div[last()-1]/div[last()-1]/div/div/form/div/div[last()-3]/input"]}},{"id":4,"index":4,"parentId":0,"type":0,"option":4,"title":"输入文字","sequence":[],"isInLoop":false,"position":3,"parameters":{"history":5,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"passwordInput\"]","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"value":"Qw982311099.","index":0,"allXPaths":["/html/body/div[2]/div[2]/div[1]/div[2]/div[1]/div[1]/form[1]/div[2]/div[2]/input[1]","//input[contains(., '')]","id(\"passwordInput\")","//INPUT[@class='text fullWidth']","//INPUT[@name='Password']","/html/body/div[last()-3]/div/div[last()-1]/div[last()-1]/div/div/form/div/div[last()-2]/input"]}},{"id":5,"index":5,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":4,"parameters":{"history":5,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"submitButton\"]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[2]/div[1]/div[2]/div[1]/div[1]/form[1]/div[2]/div[4]/span[1]","//span[contains(., 'Sign in')]","id(\"submitButton\")","//SPAN[@class='submit']","/html/body/div[last()-3]/div/div[last()-1]/div[last()-1]/div/div/form/div/div/span"]}},{"id":-1,"index":6,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":5,"parameters":{"history":5,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"submitButton\"]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[2]/div[1]/div[2]/div[1]/div[1]/form[1]/div[2]/div[4]/span[1]","//span[contains(., 'Sign in')]","id(\"submitButton\")","//SPAN[@class='submit']","/html/body/div[last()-3]/div/div[last()-1]/div[last()-1]/div/div/form/div/div/span"]}},{"id":6,"index":7,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":5,"parameters":{"history":6,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"bookfacility\"]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[1]/div[1]/div[3]/ul[1]/li[5]/a[1]","//a[contains(., 'Book Facil')]","id(\"bookfacility\")","//A[@class='parent']","//A[@name='bookfacility']","/html/body/div[last()-4]/div/div[last()-1]/div[last()-5]/ul/li[last()-4]/a"]}},{"id":7,"index":8,"parentId":0,"type":0,"option":6,"title":"切换下拉选项","sequence":[],"isInLoop":false,"position":6,"parameters":{"history":7,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"activity_filter\"]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"optionMode":0,"optionValue":"Badminton","index":0,"allXPaths":["/html/body/div[2]/div[1]/div[1]/section[3]/div[1]/form[1]/fieldset[1]/select[1]","//select[contains(., 'Select an')]","id(\"activity_filter\")","//SELECT[@class='input-xlarge ']","//SELECT[@name='activity_filter']","/html/body/div[last()-5]/div/div[last()-1]/section/div/form/fieldset[last()-3]/select"]}},{"id":-1,"index":9,"parentId":0,"type":0,"option":6,"title":"切换下拉选项","sequence":[],"isInLoop":false,"position":7,"parameters":{"history":7,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"activity_filter\"]","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"optionMode":"1","optionValue":1,"index":0,"allXPaths":["/html/body/div[2]/div[1]/div[1]/section[3]/div[1]/form[1]/fieldset[1]/select[1]","//select[contains(., 'Select an')]","id(\"activity_filter\")","//SELECT[@class='input-xlarge ']","//SELECT[@name='activity_filter']","/html/body/div[last()-5]/div/div[last()-1]/section/div/form/fieldset[last()-3]/select"]}},{"id":8,"index":10,"parentId":0,"type":0,"option":6,"title":"切换下拉选项","sequence":[],"isInLoop":false,"position":7,"parameters":{"history":7,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"venue_filter\"]","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"optionMode":"1","optionValue":"1","index":0,"allXPaths":["/html/body/div[2]/div[1]/div[1]/section[3]/div[1]/form[1]/fieldset[2]/select[1]","//select[contains(., 'Select a v')]","id(\"venue_filter\")","//SELECT[@class='input-xlarge ']","//SELECT[@name='venue_filter']","/html/body/div[last()-5]/div/div[last()-1]/section/div/form/fieldset[last()-2]/select"]}},{"id":9,"index":11,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":8,"parameters":{"history":7,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"date_filter\"]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[1]/div[1]/section[3]/div[1]/form[1]/fieldset[3]/input[1]","//input[contains(., '')]","id(\"date_filter\")","//INPUT[@class='chosen-container datepicker hasDatepicker']","//INPUT[@name='date_filter']","/html/body/div[last()-5]/div/div[last()-1]/section/div/form/fieldset[last()-1]/input"]}},{"id":10,"index":12,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":9,"parameters":{"history":7,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"search\"]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[1]/div[1]/section[3]/div[1]/form[1]/fieldset[4]/input[1]","//input[contains(., '')]","id(\"search\")","//INPUT[@class='btn btn-filter-search']","//INPUT[@name='search']","/html/body/div[last()-5]/div/div[last()-1]/section/div/form/fieldset/input"]}},{"id":11,"index":13,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":10,"parameters":{"history":8,"tabIndex":-1,"useLoop":false,"xpath":"//*[contains(@class, \"timeslot-container\")]/div[5]/div[1]/div[7]/label[1]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[1]/div[1]/section[3]/div[4]/div[1]/form[1]/div[1]/div[5]/div[1]/div[7]/label[1]","//label[contains(., '01:00 PM')]","/html/body/div[last()-5]/div/div[last()-1]/section/div/div/form/div[last()-1]/div[last()-1]/div/div[last()-7]/label"]}},{"id":12,"index":14,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":11,"parameters":{"history":8,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"paynow\"]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[1]/div[1]/section[3]/div[4]/div[1]/form[1]/div[2]/div[1]/input[1]","//input[contains(., '')]","id(\"paynow\")","//INPUT[@class='btn btn-flat blue last-child']","//INPUT[@name='cart']","/html/body/div[last()-5]/div/div[last()-1]/section/div/div/form/div/div/input"]}},{"id":13,"index":15,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":12,"parameters":{"history":5,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"bookfacility\"]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[1]/div[1]/div[3]/ul[1]/li[5]/a[1]","//a[contains(., 'Book Facil')]","id(\"bookfacility\")","//A[@class='parent']","//A[@name='bookfacility']","/html/body/div[last()-4]/div/div[last()-1]/div[last()-5]/ul/li[last()-4]/a"]}}]} \ No newline at end of file +{"id":218,"name":"NUS","url":"https://reboks.nus.edu.sg/","links":"https://reboks.nus.edu.sg/nus_public_web/public/facilities/view/activity/58/venue/15?time_from=1694016000","create_time":"9/5/2023, 12:28:18 PM","update_time":"9/5/2023, 1:05:36 PM","version":"0.5.0","saveThreshold":10,"cloudflare":0,"environment":0,"maxViewLength":15,"recordLog":1,"outputFormat":"xlsx","saveName":"current_time","inputExcel":"","startFromExit":0,"containJudge":false,"desc":"https://reboks.nus.edu.sg/","inputParameters":[{"id":0,"name":"urlList_0","nodeId":1,"nodeName":"打开网页","value":"https://reboks.nus.edu.sg/","desc":"要采集的网址列表,多行以\\n分开","type":"text","exampleValue":"https://reboks.nus.edu.sg/"},{"id":1,"name":"inputText_1","nodeName":"输入文字","nodeId":3,"desc":"要输入的文本,如京东搜索框输入:电脑","type":"text","exampleValue":"nusstu\\e0546263","value":"nusstu\\e0546263"},{"id":2,"name":"inputText_2","nodeName":"输入文字","nodeId":4,"desc":"要输入的文本,如京东搜索框输入:电脑","type":"text","exampleValue":"Qw982311099.","value":"Qw982311099."},{"id":3,"name":"urlList_3","nodeId":16,"nodeName":"打开网页","value":"https://reboks.nus.edu.sg/nus_public_web/public/facilities/view/activity/58/venue/15?time_from=1694016000","desc":"要采集的网址列表,多行以\\n分开","type":"text","exampleValue":"https://reboks.nus.edu.sg/nus_public_web/public/facilities/view/activity/58/venue/15?time_from=1694016000"}],"outputParameters":[{"id":0,"name":"自定义操作","desc":"自定义操作返回的数据","type":"text","recordASField":0,"exampleValue":""}],"graph":[{"index":0,"id":0,"parentId":0,"type":-1,"option":0,"title":"root","sequence":[1,2,3,4,5,16,17,18,19],"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":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,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"url":"https://reboks.nus.edu.sg/","links":"https://reboks.nus.edu.sg/","maxWaitTime":10,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"cookies":""}},{"id":2,"index":2,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":1,"parameters":{"history":4,"tabIndex":-1,"useLoop":false,"xpath":"//*[contains(@class, \"btn-facebook\")]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[1]/div[1]/div[1]/div[5]/div[2]/div[1]/fieldset[1]/div[1]/div[1]/div[2]/a[1]","//a[contains(., '')]","//A[@class='btn btn-block btn-facebook']","/html/body/div[last()-3]/div/div/div[last()-2]/div/div/fieldset/div/div/div[last()-1]/a[last()-1]"]}},{"id":3,"index":3,"parentId":0,"type":0,"option":4,"title":"输入文字","sequence":[],"isInLoop":false,"position":2,"parameters":{"history":5,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"userNameInput\"]","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"value":"nusstu\\e0546263","index":0,"allXPaths":["/html/body/div[2]/div[2]/div[1]/div[2]/div[1]/div[1]/form[1]/div[2]/div[1]/input[1]","//input[contains(., '')]","id(\"userNameInput\")","//INPUT[@class='text fullWidth']","//INPUT[@name='UserName']","/html/body/div[last()-3]/div/div[last()-1]/div[last()-1]/div/div/form/div/div[last()-3]/input"]}},{"id":4,"index":4,"parentId":0,"type":0,"option":4,"title":"输入文字","sequence":[],"isInLoop":false,"position":3,"parameters":{"history":5,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"passwordInput\"]","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"value":"Qw982311099.","index":0,"allXPaths":["/html/body/div[2]/div[2]/div[1]/div[2]/div[1]/div[1]/form[1]/div[2]/div[2]/input[1]","//input[contains(., '')]","id(\"passwordInput\")","//INPUT[@class='text fullWidth']","//INPUT[@name='Password']","/html/body/div[last()-3]/div/div[last()-1]/div[last()-1]/div/div/form/div/div[last()-2]/input"]}},{"id":5,"index":5,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":4,"parameters":{"history":5,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"submitButton\"]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[2]/div[1]/div[2]/div[1]/div[1]/form[1]/div[2]/div[4]/span[1]","//span[contains(., 'Sign in')]","id(\"submitButton\")","//SPAN[@class='submit']","/html/body/div[last()-3]/div/div[last()-1]/div[last()-1]/div/div/form/div/div/span"]}},{"id":-1,"index":6,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":5,"parameters":{"history":5,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"submitButton\"]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[2]/div[1]/div[2]/div[1]/div[1]/form[1]/div[2]/div[4]/span[1]","//span[contains(., 'Sign in')]","id(\"submitButton\")","//SPAN[@class='submit']","/html/body/div[last()-3]/div/div[last()-1]/div[last()-1]/div/div/form/div/div/span"]}},{"id":-1,"index":7,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":5,"parameters":{"history":6,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"bookfacility\"]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[1]/div[1]/div[3]/ul[1]/li[5]/a[1]","//a[contains(., 'Book Facil')]","id(\"bookfacility\")","//A[@class='parent']","//A[@name='bookfacility']","/html/body/div[last()-4]/div/div[last()-1]/div[last()-5]/ul/li[last()-4]/a"]}},{"id":-1,"index":8,"parentId":0,"type":0,"option":6,"title":"切换下拉选项","sequence":[],"isInLoop":false,"position":6,"parameters":{"history":7,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"activity_filter\"]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"optionMode":0,"optionValue":"Badminton","index":0,"allXPaths":["/html/body/div[2]/div[1]/div[1]/section[3]/div[1]/form[1]/fieldset[1]/select[1]","//select[contains(., 'Select an')]","id(\"activity_filter\")","//SELECT[@class='input-xlarge ']","//SELECT[@name='activity_filter']","/html/body/div[last()-5]/div/div[last()-1]/section/div/form/fieldset[last()-3]/select"]}},{"id":-1,"index":9,"parentId":0,"type":0,"option":6,"title":"切换下拉选项","sequence":[],"isInLoop":false,"position":7,"parameters":{"history":7,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"activity_filter\"]","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"optionMode":"1","optionValue":1,"index":0,"allXPaths":["/html/body/div[2]/div[1]/div[1]/section[3]/div[1]/form[1]/fieldset[1]/select[1]","//select[contains(., 'Select an')]","id(\"activity_filter\")","//SELECT[@class='input-xlarge ']","//SELECT[@name='activity_filter']","/html/body/div[last()-5]/div/div[last()-1]/section/div/form/fieldset[last()-3]/select"]}},{"id":-1,"index":10,"parentId":0,"type":0,"option":6,"title":"切换下拉选项","sequence":[],"isInLoop":false,"position":7,"parameters":{"history":7,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"venue_filter\"]","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"optionMode":"1","optionValue":"1","index":0,"allXPaths":["/html/body/div[2]/div[1]/div[1]/section[3]/div[1]/form[1]/fieldset[2]/select[1]","//select[contains(., 'Select a v')]","id(\"venue_filter\")","//SELECT[@class='input-xlarge ']","//SELECT[@name='venue_filter']","/html/body/div[last()-5]/div/div[last()-1]/section/div/form/fieldset[last()-2]/select"]}},{"id":-1,"index":11,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":8,"parameters":{"history":7,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"date_filter\"]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[1]/div[1]/section[3]/div[1]/form[1]/fieldset[3]/input[1]","//input[contains(., '')]","id(\"date_filter\")","//INPUT[@class='chosen-container datepicker hasDatepicker']","//INPUT[@name='date_filter']","/html/body/div[last()-5]/div/div[last()-1]/section/div/form/fieldset[last()-1]/input"]}},{"id":-1,"index":12,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":9,"parameters":{"history":7,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"search\"]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[1]/div[1]/section[3]/div[1]/form[1]/fieldset[4]/input[1]","//input[contains(., '')]","id(\"search\")","//INPUT[@class='btn btn-filter-search']","//INPUT[@name='search']","/html/body/div[last()-5]/div/div[last()-1]/section/div/form/fieldset/input"]}},{"id":-1,"index":13,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":10,"parameters":{"history":8,"tabIndex":-1,"useLoop":false,"xpath":"//*[contains(@class, \"timeslot-container\")]/div[5]/div[1]/div[7]/label[1]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[1]/div[1]/section[3]/div[4]/div[1]/form[1]/div[1]/div[5]/div[1]/div[7]/label[1]","//label[contains(., '01:00 PM')]","/html/body/div[last()-5]/div/div[last()-1]/section/div/div/form/div[last()-1]/div[last()-1]/div/div[last()-7]/label"]}},{"id":-1,"index":14,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":11,"parameters":{"history":8,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"paynow\"]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[1]/div[1]/section[3]/div[4]/div[1]/form[1]/div[2]/div[1]/input[1]","//input[contains(., '')]","id(\"paynow\")","//INPUT[@class='btn btn-flat blue last-child']","//INPUT[@name='cart']","/html/body/div[last()-5]/div/div[last()-1]/section/div/div/form/div/div/input"]}},{"id":-1,"index":15,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":12,"parameters":{"history":5,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"bookfacility\"]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[1]/div[1]/div[3]/ul[1]/li[5]/a[1]","//a[contains(., 'Book Facil')]","id(\"bookfacility\")","//A[@class='parent']","//A[@name='bookfacility']","/html/body/div[last()-4]/div/div[last()-1]/div[last()-5]/ul/li[last()-4]/a"]}},{"id":6,"index":16,"parentId":0,"type":0,"option":1,"title":"打开网页","sequence":[],"isInLoop":false,"position":5,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":3,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"url":"about:blank","links":"https://reboks.nus.edu.sg/nus_public_web/public/facilities/view/activity/58/venue/15?time_from=1694016000","maxWaitTime":10,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"cookies":""}},{"id":7,"index":17,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":6,"parameters":{"history":6,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"formTimeslots\"]//label[contains(text(),\"08:\")]","iframe":false,"wait":4,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[1]/div[1]/section[3]/div[4]/div[1]/form[1]/div[1]/div[1]/div[1]/div[1]/label[1]","//label[contains(., '07:00 AM')]","/html/body/div[last()-5]/div/div[last()-1]/section/div/div/form/div[last()-1]/div[last()-5]/div/div[last()-13]/label"]}},{"id":8,"index":18,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":7,"parameters":{"history":6,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"paynow\"]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[2]/div[1]/div[1]/section[3]/div[4]/div[1]/form[1]/div[2]/div[1]/input[1]","//input[contains(., '')]","id(\"paynow\")","//INPUT[@class='btn btn-flat blue last-child']","//INPUT[@name='cart']","/html/body/div[last()-5]/div/div[last()-1]/section/div/div/form/div/div/input"]}},{"id":9,"index":19,"parentId":0,"type":0,"option":5,"title":"自定义操作","sequence":[],"isInLoop":false,"position":8,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"clear":0,"codeMode":"5","code":"from selenium.webdriver.support.ui import WebDriverWait\nfrom selenium.webdriver.support import expected_conditions as EC\n\ntry:\n # 等待警告出现并获取警告对话框\n WebDriverWait(self.browser, 5).until(EC.alert_is_present())\n\n # 切换到警告并接受\n alert = self.browser.switch_to.alert\n alert.accept()\nexcept Exception as e:\n print(e)","waitTime":0,"recordASField":0,"paraType":"text"}}]} \ No newline at end of file diff --git a/.temp_to_pub/EasySpider_windows_x64/tasks/220.json b/.temp_to_pub/EasySpider_windows_x64/tasks/220.json new file mode 100644 index 0000000..635bb92 --- /dev/null +++ b/.temp_to_pub/EasySpider_windows_x64/tasks/220.json @@ -0,0 +1 @@ +{"id":220,"name":"京东全球版-专业的综合网上购物商城","url":"https://www.jd.com","links":"https://www.jd.com","create_time":"","update_time":"9/5/2023, 3:48:10 PM","version":"0.5.0","saveThreshold":10,"cloudflare":0,"environment":0,"maxViewLength":15,"recordLog":1,"outputFormat":"xlsx","saveName":"current_time","inputExcel":"","startFromExit":0,"containJudge":true,"desc":"https://www.jd.com","inputParameters":[{"id":0,"name":"urlList_0","nodeId":1,"nodeName":"点击元素","value":"https://www.jd.com","desc":"要采集的网址列表,多行以\\n分开","type":"text","exampleValue":"https://www.jd.com"},{"id":1,"name":"loopText_1","nodeId":2,"nodeName":"循环","desc":"要输入的文本/网址,多行以\\n分开","type":"text","exampleValue":"1\n1\n1\n1\n1\n1\n1\n","value":"1\n1\n1\n1\n1\n1\n1\n"}],"outputParameters":[{"id":0,"name":"检测字段","desc":"","type":"text","recordASField":0,"exampleValue":"/手机/数码"},{"id":1,"name":"自定义操作","desc":"自定义操作返回的数据","type":"text","recordASField":0,"exampleValue":""},{"id":2,"name":"自定义操作","desc":"自定义操作返回的数据","type":"text","recordASField":0,"exampleValue":""},{"id":3,"name":"自定义操作","desc":"自定义操作返回的数据","type":"text","recordASField":0,"exampleValue":""}],"graph":[{"index":0,"id":0,"parentId":0,"type":-1,"option":0,"title":"root","sequence":[5,2],"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0},"isInLoop":false},{"id":3,"index":1,"parentId":2,"type":0,"option":1,"title":"点击元素","sequence":[],"isInLoop":true,"position":0,"parameters":{"useLoop":false,"xpath":"","wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"url":"https://www.jd.com","links":"https://www.jd.com","maxWaitTime":10,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"cookies":""}},{"id":2,"index":2,"parentId":0,"type":1,"option":8,"title":"循环","sequence":[1,3,6],"isInLoop":false,"position":1,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"//div","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"loopType":"3","pathList":"","textList":"1\n1\n1\n1\n1\n1\n1\n","code":"","waitTime":0,"exitCount":0,"historyWait":2,"breakMode":0,"breakCode":"","breakCodeWaitTime":0}},{"id":4,"index":3,"parentId":2,"type":0,"option":3,"title":"提取数据","sequence":[],"isInLoop":true,"position":1,"parameters":{"history":4,"tabIndex":-1,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"clear":0,"paras":[{"nodeType":0,"contentType":0,"relative":false,"name":"检测字段","desc":"","extractType":0,"relativeXPath":"//*[@id=\"hotwords\"]/a[1]","allXPaths":["/html/body/div[6]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]","//div[contains(., '/手机/数码')]","//DIV[@class='LeftSide_menu_item__SBMWC LeftSide_text_space__2UhbG LeftSide_menu_hover__OCHiO']","/html/body/div[last()-5]/div/div[last()-4]/div/div[last()-2]/div/div/div/div[last()-1]/div[last()-12]"],"exampleValues":[{"num":0,"value":"/手机/数码"}],"unique_index":"16i23xj4p54lm5zgdca","iframe":false,"default":"","paraType":"text","recordASField":0,"beforeJS":"","beforeJSWaitTime":0,"JS":"","JSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"downloadPic":0}]}},{"id":-1,"index":4,"parentId":2,"type":0,"option":5,"title":"自定义操作","sequence":[],"isInLoop":true,"position":2,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"clear":0,"codeMode":"5","code":"","waitTime":0,"recordASField":0,"paraType":"text"}},{"id":1,"index":5,"parentId":0,"type":0,"option":5,"title":"自定义操作","sequence":[],"isInLoop":false,"position":0,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"clear":0,"codeMode":"5","code":"self.myVar = \"-1\"","waitTime":0,"recordASField":0,"paraType":"text"}},{"id":5,"index":6,"parentId":2,"type":2,"option":9,"title":"判断条件","sequence":[7,8],"isInLoop":true,"position":2,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0}},{"id":6,"parentId":5,"index":7,"type":3,"option":10,"title":"条件分支","sequence":[9],"isInLoop":true,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"class":"8","value":"","code":"self.myVar == self.outputParameters[\"检测字段\"]","waitTime":0},"position":0},{"id":7,"parentId":5,"index":8,"type":3,"option":10,"title":"条件分支","sequence":[10],"isInLoop":true,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"class":0,"value":"","code":"","waitTime":0},"position":1},{"id":8,"index":9,"parentId":6,"type":0,"option":5,"title":"自定义操作","sequence":[],"isInLoop":true,"position":0,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"clear":0,"codeMode":"3","code":"","waitTime":0,"recordASField":0,"paraType":"text"}},{"id":9,"index":10,"parentId":7,"type":0,"option":5,"title":"自定义操作","sequence":[],"isInLoop":true,"position":0,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"clear":0,"codeMode":"5","code":"self.myVar = self.outputParameters[\"检测字段\"]","waitTime":0,"recordASField":0,"paraType":"text"}},{"id":-1,"index":11,"parentId":2,"type":0,"option":5,"title":"自定义操作","sequence":[],"isInLoop":true,"position":2,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"clear":0,"codeMode":"5","code":"print(\"Waiting\")","waitTime":0,"recordASField":0,"paraType":"text"}},{"id":-1,"index":12,"parentId":6,"type":0,"option":5,"title":"自定义操作","sequence":[],"isInLoop":true,"position":1,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"clear":0,"codeMode":"5","code":"print(\"BREAK\")","waitTime":0,"recordASField":0,"paraType":"text"}}]} \ No newline at end of file diff --git a/ElectronJS/src/taskGrid/FlowChart.html b/ElectronJS/src/taskGrid/FlowChart.html index 02e2a14..268a1c2 100644 --- a/ElectronJS/src/taskGrid/FlowChart.html +++ b/ElectronJS/src/taskGrid/FlowChart.html @@ -381,10 +381,11 @@ This option is an advanced feature that allows direct manipulation of the runnin 2. Define a global variable: `self.myVar = 1` 3. Manipulate the above-defined global variable: `self.myVar = self.myVar + 1` 4. Print the above-defined global variable: `print(self.myVar)` +5. Assign the value of a custom variable to the value extracted from a field: `self.myVar = self.outputParameters["Field Name"]` If you want to record your custom variable as a field, please select the next option, "Get value of a Python expression (the "eval" operation)" -If you want to import and use a third-party library that the program itself does not carry, you need to first use tools such as pip to install this library locally, and then add the path of the installed library before import, like: +6. If you want to import and use a third-party library that the program itself does not carry, you need to first use tools such as pip to install this library locally, and then add the path of the installed library before import, like: (1) In the system command line execute the following command to install the library: pip install emotlib (2) Write the following code in the code box: @@ -397,6 +398,7 @@ This option is an advanced feature that allows directly returning the expression 1. Return relevant values of the current browser object. Use `self.browser` to refer to the current browser being operated. You can directly use Selenium's API to perform operations, such as `self.browser.find_element(By.CSS_SELECTOR, "body").text` to return the text on the current page. 2. Return the value of a custom global variable: `self.myVar` 3. Return the result of a conditional statement: `self.myVar == 1` +4. Determining whether the value extracted from a certain field is equal to the value of a certain variable: self.outputParameters["field name"] == self.myVar Please note that this feature does not support assigning values to variables. In other words, you cannot write something like `self.myVar = 1`. If you want to perform assignment operations, please select the previous option, "Run Python code on current environment (the "exec" operation)"

Whether to record the output/return value of the execution as a field:

@@ -511,6 +514,7 @@ print(emotlib.emoji()) # 使用其中的函数。 1. 返回当前浏览器对象的相关值,用self.browser表示当前操作的浏览器,可直接用selenium的API进行操作,如self.browser.find_element(By.CSS_SELECTOR, "body").text=="123",表示判断当前页面是否为123这个文本。 2. 返回自定义全局变量的值:self.myVar,如果 3. 返回条件判断的值:self.myVar == 1 +4. 判断某个字段提取的值是否等于某个变量的值:self.outputParameters["字段名"] == self.myVar 以上表达式返回值大于0或为真则继续循环,否则停止循环。 @@ -583,6 +587,7 @@ print(emotlib.emoji()) # 使用其中的函数。 1. 返回当前浏览器对象的相关值,用self.browser表示当前操作的浏览器,可直接用selenium的API进行操作,如self.browser.find_element(By.CSS_SELECTOR, "body").text=="123",表示判断当前页面是否为123这个文本。 2. 返回自定义全局变量的值:self.myVar,如果 3. 返回条件判断的值:self.myVar == 1 +4. 判断某个字段提取的值是否等于某个变量的值:self.outputParameters["字段名"] == self.myVar 以上表达式返回值大于0或为则执行此分支内操作,否则不执行。 diff --git a/Examples/Exec and Eval.json b/Examples/Exec and Eval.json new file mode 100644 index 0000000..635bb92 --- /dev/null +++ b/Examples/Exec and Eval.json @@ -0,0 +1 @@ +{"id":220,"name":"京东全球版-专业的综合网上购物商城","url":"https://www.jd.com","links":"https://www.jd.com","create_time":"","update_time":"9/5/2023, 3:48:10 PM","version":"0.5.0","saveThreshold":10,"cloudflare":0,"environment":0,"maxViewLength":15,"recordLog":1,"outputFormat":"xlsx","saveName":"current_time","inputExcel":"","startFromExit":0,"containJudge":true,"desc":"https://www.jd.com","inputParameters":[{"id":0,"name":"urlList_0","nodeId":1,"nodeName":"点击元素","value":"https://www.jd.com","desc":"要采集的网址列表,多行以\\n分开","type":"text","exampleValue":"https://www.jd.com"},{"id":1,"name":"loopText_1","nodeId":2,"nodeName":"循环","desc":"要输入的文本/网址,多行以\\n分开","type":"text","exampleValue":"1\n1\n1\n1\n1\n1\n1\n","value":"1\n1\n1\n1\n1\n1\n1\n"}],"outputParameters":[{"id":0,"name":"检测字段","desc":"","type":"text","recordASField":0,"exampleValue":"/手机/数码"},{"id":1,"name":"自定义操作","desc":"自定义操作返回的数据","type":"text","recordASField":0,"exampleValue":""},{"id":2,"name":"自定义操作","desc":"自定义操作返回的数据","type":"text","recordASField":0,"exampleValue":""},{"id":3,"name":"自定义操作","desc":"自定义操作返回的数据","type":"text","recordASField":0,"exampleValue":""}],"graph":[{"index":0,"id":0,"parentId":0,"type":-1,"option":0,"title":"root","sequence":[5,2],"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0},"isInLoop":false},{"id":3,"index":1,"parentId":2,"type":0,"option":1,"title":"点击元素","sequence":[],"isInLoop":true,"position":0,"parameters":{"useLoop":false,"xpath":"","wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"url":"https://www.jd.com","links":"https://www.jd.com","maxWaitTime":10,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"cookies":""}},{"id":2,"index":2,"parentId":0,"type":1,"option":8,"title":"循环","sequence":[1,3,6],"isInLoop":false,"position":1,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"//div","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"loopType":"3","pathList":"","textList":"1\n1\n1\n1\n1\n1\n1\n","code":"","waitTime":0,"exitCount":0,"historyWait":2,"breakMode":0,"breakCode":"","breakCodeWaitTime":0}},{"id":4,"index":3,"parentId":2,"type":0,"option":3,"title":"提取数据","sequence":[],"isInLoop":true,"position":1,"parameters":{"history":4,"tabIndex":-1,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"clear":0,"paras":[{"nodeType":0,"contentType":0,"relative":false,"name":"检测字段","desc":"","extractType":0,"relativeXPath":"//*[@id=\"hotwords\"]/a[1]","allXPaths":["/html/body/div[6]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]","//div[contains(., '/手机/数码')]","//DIV[@class='LeftSide_menu_item__SBMWC LeftSide_text_space__2UhbG LeftSide_menu_hover__OCHiO']","/html/body/div[last()-5]/div/div[last()-4]/div/div[last()-2]/div/div/div/div[last()-1]/div[last()-12]"],"exampleValues":[{"num":0,"value":"/手机/数码"}],"unique_index":"16i23xj4p54lm5zgdca","iframe":false,"default":"","paraType":"text","recordASField":0,"beforeJS":"","beforeJSWaitTime":0,"JS":"","JSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"downloadPic":0}]}},{"id":-1,"index":4,"parentId":2,"type":0,"option":5,"title":"自定义操作","sequence":[],"isInLoop":true,"position":2,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"clear":0,"codeMode":"5","code":"","waitTime":0,"recordASField":0,"paraType":"text"}},{"id":1,"index":5,"parentId":0,"type":0,"option":5,"title":"自定义操作","sequence":[],"isInLoop":false,"position":0,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"clear":0,"codeMode":"5","code":"self.myVar = \"-1\"","waitTime":0,"recordASField":0,"paraType":"text"}},{"id":5,"index":6,"parentId":2,"type":2,"option":9,"title":"判断条件","sequence":[7,8],"isInLoop":true,"position":2,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0}},{"id":6,"parentId":5,"index":7,"type":3,"option":10,"title":"条件分支","sequence":[9],"isInLoop":true,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"class":"8","value":"","code":"self.myVar == self.outputParameters[\"检测字段\"]","waitTime":0},"position":0},{"id":7,"parentId":5,"index":8,"type":3,"option":10,"title":"条件分支","sequence":[10],"isInLoop":true,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"class":0,"value":"","code":"","waitTime":0},"position":1},{"id":8,"index":9,"parentId":6,"type":0,"option":5,"title":"自定义操作","sequence":[],"isInLoop":true,"position":0,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"clear":0,"codeMode":"3","code":"","waitTime":0,"recordASField":0,"paraType":"text"}},{"id":9,"index":10,"parentId":7,"type":0,"option":5,"title":"自定义操作","sequence":[],"isInLoop":true,"position":0,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"clear":0,"codeMode":"5","code":"self.myVar = self.outputParameters[\"检测字段\"]","waitTime":0,"recordASField":0,"paraType":"text"}},{"id":-1,"index":11,"parentId":2,"type":0,"option":5,"title":"自定义操作","sequence":[],"isInLoop":true,"position":2,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"clear":0,"codeMode":"5","code":"print(\"Waiting\")","waitTime":0,"recordASField":0,"paraType":"text"}},{"id":-1,"index":12,"parentId":6,"type":0,"option":5,"title":"自定义操作","sequence":[],"isInLoop":true,"position":1,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"clear":0,"codeMode":"5","code":"print(\"BREAK\")","waitTime":0,"recordASField":0,"paraType":"text"}}]} \ No newline at end of file