mirror of
https://github.com/NaiboWang/EasySpider.git
synced 2025-04-21 21:25:21 +08:00
Solve SSL Error
This commit is contained in:
parent
e71cd50995
commit
83d9c9a626
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
.temp_to_pub/EasySpider_windows_x64/tasks/40.json
Normal file
1
.temp_to_pub/EasySpider_windows_x64/tasks/40.json
Normal file
File diff suppressed because one or more lines are too long
@ -916,7 +916,7 @@ class BrowserThread(Thread):
|
|||||||
|
|
||||||
# 提取数据事件
|
# 提取数据事件
|
||||||
def getData(self, para, loopElement, isInLoop=True, parentPath="", index=0):
|
def getData(self, para, loopElement, isInLoop=True, parentPath="", index=0):
|
||||||
for p in para["paras"]:
|
for p in para["paras"]: # 加并行处理
|
||||||
content = ""
|
content = ""
|
||||||
if not (p["contentType"] == 5 or p["contentType"] == 6): # 如果不是页面标题或URL,去找元素
|
if not (p["contentType"] == 5 or p["contentType"] == 6): # 如果不是页面标题或URL,去找元素
|
||||||
try:
|
try:
|
||||||
@ -1075,7 +1075,10 @@ if __name__ == '__main__':
|
|||||||
|
|
||||||
option.add_experimental_option(
|
option.add_experimental_option(
|
||||||
'excludeSwitches', ['enable-automation']) # 以开发者模式
|
'excludeSwitches', ['enable-automation']) # 以开发者模式
|
||||||
|
options.add_argument('-ignore-certificate-errors')
|
||||||
|
options.add_argument('-ignore -ssl-errors')
|
||||||
|
option.add_argument('-ignore-certificate-errors')
|
||||||
|
option.add_argument('-ignore -ssl-errors')
|
||||||
# user_data_dir = r'' # 注意没有Default!
|
# user_data_dir = r'' # 注意没有Default!
|
||||||
|
|
||||||
# options.add_argument('--user-data-dir='+p)
|
# options.add_argument('--user-data-dir='+p)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user