Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandhunt committed Jan 27, 2020
1 parent 6391f34 commit d902430
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scraper.py
Expand Up @@ -320,6 +320,8 @@ def doeshtmlelementexist(selectedel):
browser.execute_script("window.scrollTo(0, document.body.scrollHeight);")
time.sleep(scrollTime)
new_scrollheight = browser.execute_script("return document.body.scrollHeight")
print('scrollh: ' + str(cur_scrollheight))
print('scrollhNEW: ' + str(new_scrollheight))
if new_scrollheight == cur_scrollheight:
break
cur_scrollheight = new_scrollheight
Expand Down

0 comments on commit d902430

Please sign in to comment.