删除组件检测功能,增加Js打印,增加easylist更新
This commit is contained in:
@@ -9,6 +9,7 @@ from Tools.domain_extract import Extracter
|
||||
class Peeper:
|
||||
|
||||
def __init__(self):
|
||||
# self.driver_path = '/Users/mazeyu/Downloads/chromedriver'
|
||||
self.driver_path = os.path.dirname(__file__) + '/chromedriver'
|
||||
# tested with ChromeDriver version 2.42
|
||||
self.binary_path = os.path.dirname(__file__) + '/adg-osx/Chromium.app/Contents/MacOS/Chromium'
|
||||
@@ -87,7 +88,7 @@ class Peeper:
|
||||
driver = self.driverInit(proxy_enable=False)
|
||||
except Exception as e:
|
||||
print("error:", e, url)
|
||||
return 0
|
||||
return
|
||||
try:
|
||||
driver.get(url)
|
||||
driver.maximize_window()
|
||||
|
||||
Reference in New Issue
Block a user