Skip to content

Commit

Permalink
updated new login xpaths
Browse files Browse the repository at this point in the history
  • Loading branch information
eracle committed Dec 8, 2019
1 parent 14806dc commit b0ba5cf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions linkedin/spiders/selenium.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"""
WAIT_TIMEOUT = 10

LINKEDIN_LOGIN_URL = 'https://www.linkedin.com/'
LINKEDIN_LOGIN_URL = 'https://www.linkedin.com/login'

""" Hostname used in the inter-comuication between docker instances,
from the scrapy controller to the selenium instance."""
Expand Down Expand Up @@ -97,13 +97,13 @@ def login(driver):
driver.get(LINKEDIN_LOGIN_URL)

print('Searching for the Login btn')
get_by_xpath(driver, '//*[@class="login-email"]').send_keys(EMAIL)
get_by_xpath(driver, '//*[@id="username"]').send_keys(EMAIL)

print('Searching for the password btn')
get_by_xpath(driver, '//*[@class="login-password"]').send_keys(PASSWORD)
get_by_xpath(driver, '//*[@id="password"]').send_keys(PASSWORD)

print('Searching for the submit')
get_by_xpath(driver, '//*[@id="login-submit"]').click()
get_by_xpath(driver, '//*[@type="submit"]').click()


def extracts_see_all_url(driver):
Expand Down

0 comments on commit b0ba5cf

Please sign in to comment.