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 71a61a0 commit 28b4892
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scraper.py
Expand Up @@ -276,6 +276,8 @@ def doeshtmlelementexist(selectedel):
clickTime = 2 # <--- Amount of time to wait between each click
scrollTime = 2 # <--- Amount of time to wait between each scroll
start_time = datetime.now()
browser.execute_script("window.scrollTo(0, document.body.scrollHeight);")
time.sleep(scrollTime)
cur_scrollheight = browser.execute_script("return document.body.scrollHeight")
new_scrollheight = cur_scrollheight
while exists is True:
Expand Down

0 comments on commit 28b4892

Please sign in to comment.