Even better.
This commit is contained in:
parent
fc5a874190
commit
52f01612e5
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ def login(driver):
|
||||||
|
|
||||||
def pageHandler(driver, id, page):
|
def pageHandler(driver, id, page):
|
||||||
if not loadPage("https://app.myreadit.com/reader/%s#%i" % (id, int(page)), driver):
|
if not loadPage("https://app.myreadit.com/reader/%s#%i" % (id, int(page)), driver):
|
||||||
if not loadPage("https://app.myreadit.com/reader/%s#%i" % (id, int(page) + 2), driver):
|
if "/ %i" % (int(page) - 1) in driver.page_source or "/ %i" (int(page) - 2) in driver.page_source:
|
||||||
return False
|
return False
|
||||||
while not loadPage("https://app.myreadit.com/reader/%s#i" % (id, int(page)), driver):
|
while not loadPage("https://app.myreadit.com/reader/%s#i" % (id, int(page)), driver):
|
||||||
time.sleep(5)
|
time.sleep(5)
|
||||||
|
|
Loading…
Reference in a new issue