Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When try run get_my_followers.py got error #1

Open
alex37529 opened this issue Feb 29, 2020 · 1 comment
Open

When try run get_my_followers.py got error #1

alex37529 opened this issue Feb 29, 2020 · 1 comment

Comments

@alex37529
Copy link

Traceback (most recent call last):
  File "get_my_followers.py", line 34, in <module>
    get_my_followers(config)
  File "get_my_followers.py", line 18, in get_my_followers
    b.login(username, password)
  File "/home/musicwarez/work/insta_download/visual/instagram_network_analysis/01 scraping/bot.py", line 42, in login
    self.driver.find_element_by_xpath("//button[contains(.,'Log In')]").click()
  File "/home/musicwarez/.local/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 394, in find_element_by_xpath
    return self.find_element(by=By.XPATH, value=xpath)
  File "/home/musicwarez/.local/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 978, in find_element
    'value': value})['value']
  File "/home/musicwarez/.local/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
    self.error_handler.check_response(response)
  File "/home/musicwarez/.local/lib/python3.6/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"//button[contains(.,'Log In')]"}
  (Session info: headless chrome=80.0.3987.122)
  (Driver info: chromedriver=2.41.578700 (2f1ed5f9343c13f73144538f15c00b370eda6706),platform=Linux 4.15.0-48-generic x86_64)

@apbog
Copy link

apbog commented Mar 15, 2020

Check that the instagram log in page is in English.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants