-
-
Save SivaArwin/fed8d5b39607545d3d1592d1676b9837 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Load more results to maximize the scraping | |
def load_more(): | |
try: | |
more_results = '//a[@class = "moreButton"]' | |
driver.find_element_by_xpath(more_results).click() | |
# Printing these notes during the program helps me quickly check what it is doing | |
print('sleeping.....') | |
sleep(randint(45,60)) | |
except: | |
pass |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment