diff --git a/ElectronJS/tasks/189.json b/ElectronJS/tasks/189.json new file mode 100644 index 0000000..b493327 --- /dev/null +++ b/ElectronJS/tasks/189.json @@ -0,0 +1 @@ +{"id":189,"name":"ChatGPT","url":"https://chat.openai.com/","links":"https://chat.openai.com/","create_time":"7/18/2023, 2:12:36 AM","update_time":"7/18/2023, 2:12:46 AM","version":"0.3.6","saveThreshold":10,"cloudflare":1,"environment":0,"maxViewLength":15,"outputFormat":"xlsx","saveName":"current_time","inputExcel":"","startFromExit":0,"containJudge":false,"desc":"https://chat.openai.com/","inputParameters":[{"id":0,"name":"urlList_0","nodeId":1,"nodeName":"打开网页","value":"https://chat.openai.com/","desc":"要采集的网址列表,多行以\\n分开","type":"text","exampleValue":"https://chat.openai.com/"},{"id":1,"name":"inputText_1","nodeName":"输入文字","nodeId":3,"desc":"要输入的文本,如京东搜索框输入:电脑","type":"text","exampleValue":"给一段算法的python代码","value":"给一段算法的python代码"}],"outputParameters":[{"id":0,"name":"参数1_文本","desc":"","type":"text","recordASField":1,"exampleValue":"1 / 1给一段算法的python代码ChatGPTChatGPT1 / 1当您提到“一段算法”的时候,这是一个非常广泛的概念,因为有许多不同的算法可以用Python实现。以下是一个简单示例,展示如何使用Python实现冒泡排序算法:pythonCopy codedef bubble_sort(arr):\n n = len(arr)\n \n for i in range(n):\n # 每一轮冒泡将最大的元素移到最后\n for j in range(0, n-i-1):\n if arr[j] > arr[j+1]:\n arr[j], arr[j+1] = arr[j+1], arr[j]\n\n# 示例用法\narr = [64, 34, 25, 12, 22, 11, 90]\nbubble_sort(arr)\nprint(\"排序后的数组:\")\nfor i in range(len(arr)):\n print(arr[i])\n以上代码实现了冒泡排序算法。冒泡排序是一种基本的比较排序算法,它重复地遍历待排序的列表,依次比较相邻的元素,并按照大小交换它们的位置,直到整个列表排序完成。Regenerate responseFree Research Preview. ChatGPT may produce inaccurate information about people, places, or facts. ChatGPT May 24 Version"}],"graph":[{"index":0,"id":0,"parentId":0,"type":-1,"option":0,"title":"root","sequence":[1,3,4,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},"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://chat.openai.com/","links":"https://chat.openai.com/","maxWaitTime":10,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"cookies":""}},{"id":-1,"index":2,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":1,"parameters":{"history":8,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"prompt-textarea\"]","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[2]/div[1]/main[1]/div[3]/form[1]/div[1]/div[1]/textarea[1]","//textarea[contains(., '')]","id(\"prompt-textarea\")","//TEXTAREA[@class='m-0 w-full resize-none border-0 bg-transparent p-0 pr-10 focus:ring-0 focus-visible:ring-0 dark:bg-transparent md:pr-12 pl-3 md:pl-0']","/html/body/div[last()-5]/div[last()-2]/div/div/main/div/form/div/div/textarea"]}},{"id":2,"index":3,"parentId":0,"type":0,"option":4,"title":"输入文字","sequence":[],"isInLoop":false,"position":1,"parameters":{"history":8,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"prompt-textarea\"]","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"value":"给一段算法的python代码","index":0,"allXPaths":["/html/body/div[1]/div[1]/div[2]/div[1]/main[1]/div[3]/form[1]/div[1]/div[1]/textarea[1]","//textarea[contains(., '')]","id(\"prompt-textarea\")","//TEXTAREA[@class='m-0 w-full resize-none border-0 bg-transparent p-0 pr-10 focus:ring-0 focus-visible:ring-0 dark:bg-transparent md:pr-12 pl-3 md:pl-0']","/html/body/div[last()-5]/div[last()-2]/div/div/main/div/form/div/div/textarea"]}},{"id":3,"index":4,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":2,"parameters":{"history":8,"tabIndex":-1,"useLoop":false,"xpath":"//*[contains(@class, \"md:bottom-3\")]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":"3","scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[1]/div[1]/div[2]/div[1]/main[1]/div[3]/form[1]/div[1]/div[1]/button[1]","//button[contains(., '')]","//BUTTON[@class='absolute p-1 rounded-md md:bottom-3 md:p-2 md:right-3 dark:hover:bg-gray-900 dark:disabled:hover:bg-transparent right-2 disabled:text-gray-400 enabled:bg-brand-purple text-white bottom-1.5 transition-colors disabled:opacity-40']","/html/body/div[last()-5]/div[last()-2]/div/div/main/div/form/div/div/button"]}},{"id":4,"index":5,"parentId":0,"type":0,"option":3,"title":"提取数据","sequence":[],"isInLoop":false,"position":3,"parameters":{"history":8,"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":"参数1_文本","desc":"","extractType":0,"relativeXPath":"/html/body/div[1]/div[1]/div[2]/div[1]/main[1]","allXPaths":["/html/body/div[1]/div[1]/div[2]/div[1]/main[1]","//main[contains(., '1 / 1给一段算法')]","//MAIN[@class='relative h-full w-full transition-width flex flex-col overflow-auto items-stretch flex-1']","/html/body/div[last()-6]/div[last()-2]/div/div/main"],"exampleValues":[{"num":0,"value":"1 / 1给一段算法的python代码ChatGPTChatGPT1 / 1当您提到“一段算法”的时候,这是一个非常广泛的概念,因为有许多不同的算法可以用Python实现。以下是一个简单示例,展示如何使用Python实现冒泡排序算法:pythonCopy codedef bubble_sort(arr):\n n = len(arr)\n \n for i in range(n):\n # 每一轮冒泡将最大的元素移到最后\n for j in range(0, n-i-1):\n if arr[j] > arr[j+1]:\n arr[j], arr[j+1] = arr[j+1], arr[j]\n\n# 示例用法\narr = [64, 34, 25, 12, 22, 11, 90]\nbubble_sort(arr)\nprint(\"排序后的数组:\")\nfor i in range(len(arr)):\n print(arr[i])\n以上代码实现了冒泡排序算法。冒泡排序是一种基本的比较排序算法,它重复地遍历待排序的列表,依次比较相邻的元素,并按照大小交换它们的位置,直到整个列表排序完成。Regenerate responseFree Research Preview. ChatGPT may produce inaccurate information about people, places, or facts. ChatGPT May 24 Version"}],"unique_index":"kjo2u31aho9lk76nwus","iframe":false,"default":"","paraType":"text","recordASField":1,"beforeJS":"","beforeJSWaitTime":0,"JS":"","JSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"downloadPic":0}]}}]} \ No newline at end of file diff --git a/ElectronJS/tasks/190.json b/ElectronJS/tasks/190.json new file mode 100644 index 0000000..f125de7 --- /dev/null +++ b/ElectronJS/tasks/190.json @@ -0,0 +1 @@ +{"id":190,"name":"GPT","url":"https://gpt.naibo.wang","links":"https://gpt.naibo.wang","create_time":"7/18/2023, 2:22:36 AM","update_time":"7/18/2023, 2:22:36 AM","version":"0.3.6","saveThreshold":10,"cloudflare":0,"environment":0,"maxViewLength":15,"outputFormat":"xlsx","saveName":"current_time","inputExcel":"","startFromExit":0,"containJudge":false,"desc":"https://gpt.naibo.wang","inputParameters":[{"id":0,"name":"urlList_0","nodeId":1,"nodeName":"打开网页","value":"https://gpt.naibo.wang","desc":"要采集的网址列表,多行以\\n分开","type":"text","exampleValue":"https://gpt.naibo.wang"},{"id":1,"name":"inputText_1","nodeName":"输入文字","nodeId":3,"desc":"要输入的文本,如京东搜索框输入:电脑","type":"text","exampleValue":"给一段算法的代码","value":"给一段算法的代码"}],"outputParameters":[{"id":0,"name":"参数1_文本","desc":"","type":"text","recordASField":1,"exampleValue":"给一段算法的代码 你没有解释你希望提供什么类型的代码- 比如设计的目标,使用的语言等。这里提供一个简单的 Python 算法,该算法用于查找列表中的最大元素:\ndef find_max(input_list):\n if len(input_list) == 0:\n return None\n max_value = input_list[0]\n for i in range(1, len(input_list)):\n if input_list[i] > max_value:\n max_value = input_list[i]\n return max_value\n\nif __name__ == \"__main__\":\n test_list = [12, 3, 45, 27]\n max_value = find_max(test_list)\n print(\"Maximum value in the list is\", max_value)\n \n\n当你运行这个代码,它将会输出列表 `[12, 3, 45, "}],"graph":[{"index":0,"id":0,"parentId":0,"type":-1,"option":0,"title":"root","sequence":[1,2,3,4,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},"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://gpt.naibo.wang","links":"https://gpt.naibo.wang","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, \"lg\")]","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/gradio-app[1]/div[1]/div[1]/div[1]/div[1]/button[1]","//button[contains(., 'Login')]","//BUTTON[@class='lg primary svelte-1ipelgc']","/html/body/gradio-app/div/div/div/div/button"]}},{"id":3,"index":3,"parentId":0,"type":0,"option":4,"title":"输入文字","sequence":[],"isInLoop":false,"position":2,"parameters":{"history":4,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"component-10\"]/label[1]/textarea[1]","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"value":"给一段算法的代码","index":0,"allXPaths":["/html/body/gradio-app[1]/div[1]/div[1]/div[1]/div[1]/div[1]/div[2]/div[2]/div[1]/div[3]/div[1]/div[1]/div[1]/div[1]/label[1]/textarea[1]","//textarea[contains(., '')]","//TEXTAREA[@class='scroll-hide svelte-1pie7s6']","/html/body/gradio-app/div/div/div/div/div/div/div/div[last()-3]/div/div/div[last()-3]/div/div/label/textarea"]}},{"id":4,"index":4,"parentId":0,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":false,"position":3,"parameters":{"history":4,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"component-13\"]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":"3","scrollCount":1,"scrollWaitTime":1,"clickWay":0,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/gradio-app[1]/div[1]/div[1]/div[1]/div[1]/div[1]/div[2]/div[2]/div[1]/div[3]/div[1]/div[2]/button[1]","//button[contains(., 'Send')]","id(\"component-13\")","//BUTTON[@class='lg primary svelte-1ipelgc']","/html/body/gradio-app/div/div/div/div/div/div/div/div[last()-3]/div/div/div[last()-2]/button"]}},{"id":5,"index":5,"parentId":0,"type":0,"option":3,"title":"提取数据","sequence":[],"isInLoop":false,"position":4,"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":"参数1_文本","desc":"","extractType":0,"relativeXPath":"/html/body/gradio-app[1]/div[1]/div[1]/div[1]/div[1]/div[1]/div[2]/div[1]/div[1]/div[2]/div[1]","allXPaths":["/html/body/gradio-app[1]/div[1]/div[1]/div[1]/div[1]/div[1]/div[2]/div[1]/div[1]/div[2]/div[1]","//div[contains(., '给一段算法的代码')]","//DIV[@class='message-wrap svelte-18telvq']","/html/body/gradio-app/div/div/div/div/div/div/div[last()-1]/div/div/div"],"exampleValues":[{"num":0,"value":"给一段算法的代码 你没有解释你希望提供什么类型的代码- 比如设计的目标,使用的语言等。这里提供一个简单的 Python 算法,该算法用于查找列表中的最大元素:\ndef find_max(input_list):\n if len(input_list) == 0:\n return None\n max_value = input_list[0]\n for i in range(1, len(input_list)):\n if input_list[i] > max_value:\n max_value = input_list[i]\n return max_value\n\nif __name__ == \"__main__\":\n test_list = [12, 3, 45, 27]\n max_value = find_max(test_list)\n print(\"Maximum value in the list is\", max_value)\n \n\n当你运行这个代码,它将会输出列表 `[12, 3, 45, "}],"unique_index":"bchbjubuyetlk76zuuf","iframe":false,"default":"","paraType":"text","recordASField":1,"beforeJS":"","beforeJSWaitTime":0,"JS":"","JSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"downloadPic":0}]}}]} \ No newline at end of file diff --git a/ExecuteStage/.vscode/launch.json b/ExecuteStage/.vscode/launch.json index b7fdc1e..32c7152 100644 --- a/ExecuteStage/.vscode/launch.json +++ b/ExecuteStage/.vscode/launch.json @@ -12,7 +12,7 @@ "justMyCode": false, // "args": ["--id", "[7]", "--read_type", "remote", "--headless", "0"] // "args": ["--id", "[9]", "--read_type", "remote", "--headless", "0", "--saved_file_name", "YOUTUBE"] - "args": ["--id", "[79]", "--headless", "0", "--user_data", "1", "--keyboard", "0"] + "args": ["--id", "[81]", "--headless", "0", "--user_data", "1", "--keyboard", "0"] } ] } \ No newline at end of file diff --git a/ExecuteStage/undetected_chromedriver_ES/__init__.py b/ExecuteStage/undetected_chromedriver_ES/__init__.py index ba4cb7f..86345b2 100644 --- a/ExecuteStage/undetected_chromedriver_ES/__init__.py +++ b/ExecuteStage/undetected_chromedriver_ES/__init__.py @@ -421,7 +421,7 @@ class Chrome(selenium.webdriver.chrome.webdriver.WebDriver): elif self.patcher.version_main >= 108: options.add_argument("--headless=new") - options.add_argument("--window-size=1920,1080") + # options.add_argument("--window-size=1920,1080") options.add_argument("--start-maximized") options.add_argument("--no-sandbox") # fixes "could not connect to chrome" error when running