Oops again.
This commit is contained in:
parent
6914908e0e
commit
be31064500
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ 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 "/ %i" % (int(page) - 1) in driver.page_source or "/ %i" % (int(page) - 2) in driver.page_source:
|
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)
|
||||||
|
|
||||||
img = driver.find_element_by_id("page1").get_attribute("src")
|
img = driver.find_element_by_id("page1").get_attribute("src")
|
||||||
|
|
Loading…
Reference in a new issue