Skip to content

Commit

Permalink
click issue on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoongi Kim committed Feb 20, 2019
1 parent 86dbf7d commit cd4fc3f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion collect_links.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,13 +148,14 @@ def google_full(self, keyword, add_url=""):
print('[Full Resolution Mode]')

self.browser.get("https://www.google.co.kr/search?q={}&tbm=isch{}".format(keyword, add_url))
time.sleep(2)
time.sleep(1)

elem = self.browser.find_element_by_tag_name("body")
time.sleep(1)

print('Scraping links')

elem.send_keys(Keys.DOWN)
self.wait_and_click('//img[@class="rg_ic rg_i"]')
time.sleep(1)

Expand Down

0 comments on commit cd4fc3f

Please sign in to comment.