Commit 27018e2d authored by liyang's avatar liyang

feat:twitter debug

parent 6c528f44
......@@ -88,7 +88,7 @@ def reptile(browser=None, search_word=""):
element_content_list = browser.find_elements('xpath', base_xpath)
# 小于10条,加载下一页
if len(element_content_list and includes) < 10:
if len(element_content_list) <= 10 and includes:
browser.execute_script("window.scrollTo(0, document.body.scrollHeight);")
time.sleep(2)
element_content_list = browser.find_elements('xpath', base_xpath)
......
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