Commit aca6a4e9 authored by liyang's avatar liyang

feat:ptt 增加限制,最大10页

parent dae3fe3d
......@@ -231,6 +231,7 @@ def reptile(browser=None, search_word=""):
"//a[@class='btn wide' and text() = '‹ 上頁']")
prev_button.click()
time.sleep(0.3)
if page <= 10:
process_data()
except:
error = ""
......
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