Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Kooben209 committed Jun 30, 2019
1 parent 396f747 commit b357046
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scraper.py
Expand Up @@ -92,7 +92,7 @@ def saveToStore(data):
driver = webdriver.Chrome(chrome_options=chrome_options)
driverException = False
driver.get(checkURL)
numOfPages = int(driver.find_element_by_xpath('/html/body/div[1]/div[2]/div[1]/div[3]/div/div/div/div[2]/span[3]').text)
numOfPages = int(driver.find_element_by_css_selector("span[class='pagination-pageInfo'][data-bind='text: total']").text)
except ValueError:
numOfPages = 0
except WebDriverException as e:
Expand Down

0 comments on commit b357046

Please sign in to comment.