加入等待时间
This commit is contained in:
parent
03cc9113d5
commit
d1207d1bfb
|
@ -76,8 +76,8 @@ class PtGetData:
|
|||
# 获取分页
|
||||
pages = self.get_common_total_page(doc_html)
|
||||
for i in range(0, pages):
|
||||
time.sleep(2)
|
||||
self.get_data_by_page(section_name, section_data, i)
|
||||
|
||||
# 数据入库
|
||||
except Exception as e:
|
||||
print(f"页面无法解析,请知晓!!!{e}")
|
||||
|
|
Loading…
Reference in New Issue