Commit 168c7992 authored by liyang's avatar liyang

fix:爬取数据入库

parent ac39f91d
......@@ -60,8 +60,8 @@ def write_to_database(data):
def reptile(browser=None, search_word=""):
url = "https://www.ptt.cc/bbs/hotboards.html"
# browser = browser or create(['--headless'])
browser = browser or create()
browser = browser or create(['--headless'])
# browser = browser or create()
# time.sleep(1)
# 打开网页
browser.get(url)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment