Commit 98dcc42f authored by liyang's avatar liyang

fix:ptt debug

parent de29ef15
...@@ -30,10 +30,10 @@ from selenium.webdriver.support import expected_conditions as EC ...@@ -30,10 +30,10 @@ from selenium.webdriver.support import expected_conditions as EC
def reptile(browser=None, search_word=""): def reptile(browser=None, search_word=""):
print(f"搜索词:{search_word}") print(f"搜索词:{search_word}")
url = "https://www.facebook.com/" url = "https://www.facebook.com/"
browser = browser or create(no_headless=True, using_user_data=False) browser = browser or create(no_headless=False, using_user_data=True)
# 打开网页 # 打开网页
browser.get(url) browser.get(url)
# time.sleep(3) time.sleep(2)
try: try:
# time.sleep(3) # time.sleep(3)
# 检测是否要登录 # 检测是否要登录
......
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