加入等待时间

This commit is contained in:
rm 2024-01-16 18:32:18 +08:00
parent 03cc9113d5
commit d1207d1bfb
1 changed files with 1 additions and 1 deletions

View File

@ -76,8 +76,8 @@ class PtGetData:
# 获取分页 # 获取分页
pages = self.get_common_total_page(doc_html) pages = self.get_common_total_page(doc_html)
for i in range(0, pages): for i in range(0, pages):
time.sleep(2)
self.get_data_by_page(section_name, section_data, i) self.get_data_by_page(section_name, section_data, i)
# 数据入库 # 数据入库
except Exception as e: except Exception as e:
print(f"页面无法解析,请知晓!!!{e}") print(f"页面无法解析,请知晓!!!{e}")