瀏覽代碼

File Downloads in headless

naibo 2 年之前
父節點
當前提交
8a7f90d554
共有 22 個文件被更改,包括 12 次插入3 次删除
  1. 0 0
      .temp_to_pub/EasySpider_windows_x64/execution_instances/58.json
  2. 0 0
      .temp_to_pub/EasySpider_windows_x64/execution_instances/59.json
  3. 0 0
      .temp_to_pub/EasySpider_windows_x64/execution_instances/60.json
  4. 0 0
      .temp_to_pub/EasySpider_windows_x64/execution_instances/61.json
  5. 0 0
      .temp_to_pub/EasySpider_windows_x64/execution_instances/62.json
  6. 0 0
      .temp_to_pub/EasySpider_windows_x64/execution_instances/63.json
  7. 0 0
      .temp_to_pub/EasySpider_windows_x64/execution_instances/64.json
  8. 0 0
      .temp_to_pub/EasySpider_windows_x64/execution_instances/65.json
  9. 0 0
      .temp_to_pub/EasySpider_windows_x64/execution_instances/66.json
  10. 0 0
      .temp_to_pub/EasySpider_windows_x64/execution_instances/67.json
  11. 0 0
      .temp_to_pub/EasySpider_windows_x64/execution_instances/68.json
  12. 0 0
      .temp_to_pub/EasySpider_windows_x64/execution_instances/69.json
  13. 0 0
      .temp_to_pub/EasySpider_windows_x64/execution_instances/70.json
  14. 0 0
      .temp_to_pub/EasySpider_windows_x64/execution_instances/71.json
  15. 0 0
      .temp_to_pub/EasySpider_windows_x64/execution_instances/72.json
  16. 0 0
      .temp_to_pub/EasySpider_windows_x64/execution_instances/73.json
  17. 0 0
      .temp_to_pub/EasySpider_windows_x64/tasks/222.json
  18. 0 0
      .temp_to_pub/EasySpider_windows_x64/tasks/223.json
  19. 0 0
      .temp_to_pub/EasySpider_windows_x64/tasks/224.json
  20. 0 0
      .temp_to_pub/EasySpider_windows_x64/tasks/225.json
  21. 1 1
      ExecuteStage/.vscode/launch.json
  22. 11 2
      ExecuteStage/easyspider_executestage.py

File diff suppressed because it is too large
+ 0 - 0
.temp_to_pub/EasySpider_windows_x64/execution_instances/58.json


File diff suppressed because it is too large
+ 0 - 0
.temp_to_pub/EasySpider_windows_x64/execution_instances/59.json


File diff suppressed because it is too large
+ 0 - 0
.temp_to_pub/EasySpider_windows_x64/execution_instances/60.json


File diff suppressed because it is too large
+ 0 - 0
.temp_to_pub/EasySpider_windows_x64/execution_instances/61.json


File diff suppressed because it is too large
+ 0 - 0
.temp_to_pub/EasySpider_windows_x64/execution_instances/62.json


File diff suppressed because it is too large
+ 0 - 0
.temp_to_pub/EasySpider_windows_x64/execution_instances/63.json


File diff suppressed because it is too large
+ 0 - 0
.temp_to_pub/EasySpider_windows_x64/execution_instances/64.json


File diff suppressed because it is too large
+ 0 - 0
.temp_to_pub/EasySpider_windows_x64/execution_instances/65.json


File diff suppressed because it is too large
+ 0 - 0
.temp_to_pub/EasySpider_windows_x64/execution_instances/66.json


File diff suppressed because it is too large
+ 0 - 0
.temp_to_pub/EasySpider_windows_x64/execution_instances/67.json


File diff suppressed because it is too large
+ 0 - 0
.temp_to_pub/EasySpider_windows_x64/execution_instances/68.json


File diff suppressed because it is too large
+ 0 - 0
.temp_to_pub/EasySpider_windows_x64/execution_instances/69.json


File diff suppressed because it is too large
+ 0 - 0
.temp_to_pub/EasySpider_windows_x64/execution_instances/70.json


File diff suppressed because it is too large
+ 0 - 0
.temp_to_pub/EasySpider_windows_x64/execution_instances/71.json


File diff suppressed because it is too large
+ 0 - 0
.temp_to_pub/EasySpider_windows_x64/execution_instances/72.json


File diff suppressed because it is too large
+ 0 - 0
.temp_to_pub/EasySpider_windows_x64/execution_instances/73.json


File diff suppressed because it is too large
+ 0 - 0
.temp_to_pub/EasySpider_windows_x64/tasks/222.json


File diff suppressed because it is too large
+ 0 - 0
.temp_to_pub/EasySpider_windows_x64/tasks/223.json


File diff suppressed because it is too large
+ 0 - 0
.temp_to_pub/EasySpider_windows_x64/tasks/224.json


File diff suppressed because it is too large
+ 0 - 0
.temp_to_pub/EasySpider_windows_x64/tasks/225.json


+ 1 - 1
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", "[14]", "--headless", "0", "--user_data", "0", "--keyboard", "0"]
+            "args": ["--id", "[73]", "--headless", "1", "--user_data", "0", "--keyboard", "0"]
         }
     ]
 }

+ 11 - 2
ExecuteStage/easyspider_executestage.py

@@ -1955,7 +1955,11 @@ if __name__ == '__main__':
                 "plugins.plugins_list": [{"enabled": False, "name": "Chrome PDF Viewer"}],
                 "download.directory_upgrade": True,
                 "download.extensions_to_open": "applications/pdf",
-                "plugins.always_open_pdf_externally": True  # 总是在外部程序中打开PDF
+                "plugins.always_open_pdf_externally": True,  # 总是在外部程序中打开PDF
+                "safebrowsing_for_trusted_sources_enabled": False,
+                "safebrowsing.enabled": False,
+                'safebrowsing.disable_download_protection': True,
+                'profile.default_content_settings.popups': 0,
             })
             option.add_experimental_option("prefs", {
                 # 设置文件下载路径
@@ -1964,7 +1968,12 @@ if __name__ == '__main__':
                 "plugins.plugins_list": [{"enabled": False, "name": "Chrome PDF Viewer"}],
                 "download.directory_upgrade": True,
                 "download.extensions_to_open": "applications/pdf",
-                "plugins.always_open_pdf_externally": True  # 总是在外部程序中打开PDF
+                "plugins.always_open_pdf_externally": True,  # 总是在外部程序中打开PDF
+                "safebrowsing_for_trusted_sources_enabled": False,
+                "safebrowsing.enabled": False,
+                'safebrowsing.enabled': False,
+                'safebrowsing.disable_download_protection': True,
+                'profile.default_content_settings.popups': 0,
             })
             try:
                 if service["environment"] == 1:

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