Jared 3 năm trước cách đây
mục cha
commit
3157d7248b
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      INNNews/general_clickbot.py

+ 2 - 0
INNNews/general_clickbot.py

@@ -83,6 +83,8 @@ def run_once(q):
     options.add_argument('--headless')
     options.add_argument('--headless')
 
 
     options.add_argument('--disable-dev-shm-usage')
     options.add_argument('--disable-dev-shm-usage')
+    options.add_argument('--no-sandbox')
+    options.add_argument('--remote-debugging-port=9222')
 
 
 #    options.add_argument("--user-agent=" +user_agent)
 #    options.add_argument("--user-agent=" +user_agent)
     options.add_argument("--incognito")
     options.add_argument("--incognito")