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

Even basic commands don't work #93

Open
tothlac opened this issue Jul 12, 2020 · 2 comments
Open

Even basic commands don't work #93

tothlac opened this issue Jul 12, 2020 · 2 comments

Comments

@tothlac
Copy link

tothlac commented Jul 12, 2020

I'm constantly getting this error:

Traceback (most recent call last):
  File "crawler.py", line 83, in <module>
    args.username, args.number, args.mode == "posts_full", args.debug
  File "crawler.py", line 27, in get_posts_by_user
    ins_crawler = InsCrawler(has_screen=debug)
  File "/Users/tothlac/otp/instagram-crawler/inscrawler/crawler.py", line 70, in __init__
    self.login()
  File "/Users/tothlac/otp/instagram-crawler/inscrawler/crawler.py", line 87, in login
    login_btn.click()
  File "/usr/local/lib/python3.7/site-packages/selenium/webdriver/remote/webelement.py", line 80, in click
    self._execute(Command.CLICK_ELEMENT)
  File "/usr/local/lib/python3.7/site-packages/selenium/webdriver/remote/webelement.py", line 628, in _execute
    return self._parent.execute(command, params)
  File "/usr/local/lib/python3.7/site-packages/selenium/webdriver/remote/webdriver.py", line 312, in execute
    self.error_handler.check_response(response)
  File "/usr/local/lib/python3.7/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.ElementClickInterceptedException: Message: element click intercepted: Element <button class="sqdOP  L3NKy   y3zKF     " disabled="" type="submit">...</button> is not clickable at point (400, 320). Other element would receive the click: <div class="                    Igw0E     IwRSH      eGOV_         _4EzTm    bkEs3                          CovQj                  jKUp7          DhRcB                                                    ">...</div>
  (Session info: headless chrome=83.0.4103.116)```

Looks like even the basic functionality does not work. Please fix, or if it is not doable delete the useless repository.
Thanks.

@soeonkim
Copy link

soeonkim commented Jul 14, 2020

Did you set the environment properly?
I tried it yesterday and it works except for some functions(ex. fetch_hashtag)

@cmannerstrale
Copy link

cmannerstrale commented Jul 28, 2020

Solved by setting up the file secret.py:

import os

username = os.environ.get('USERNAME', 'your_username_goes_here')
password = os.environ.get('PASSWORD', 'your_password_goes_here')

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

3 participants