Skip to content

Commit

Permalink
Merge pull request #1 from JoaoRibeiroMedeiros/JoaoRibeiroMedeiros-pa…
Browse files Browse the repository at this point in the history
…tch-1

corrects issue brutalsavage#33 calling element by name
  • Loading branch information
JoaoRibeiroMedeiros committed Sep 11, 2020
2 parents acf0bfd + bbe083c commit 235c8c0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,8 @@ def _login(browser, email, password):
browser.maximize_window()
browser.find_element_by_name("email").send_keys(email)
browser.find_element_by_name("pass").send_keys(password)
browser.find_element_by_id('loginbutton').click()
#browser.find_element_by_id('u_0_b').click()
browser.find_element_by_name("login").click()
time.sleep(5)


Expand Down Expand Up @@ -374,6 +375,6 @@ def extract(page, numOfPost, infinite_scroll=False, scrape_comment=False):

else:
for post in postBigDict:
print(post)
print("\n")

print("Finished")

0 comments on commit 235c8c0

Please sign in to comment.