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

AttributeError: 'NoneType' object has no attribute 'click' #128

Open
SeanChangHC opened this issue Nov 16, 2022 · 2 comments
Open

AttributeError: 'NoneType' object has no attribute 'click' #128

SeanChangHC opened this issue Nov 16, 2022 · 2 comments

Comments

@SeanChangHC
Copy link

Bug/Feature/Support

AttributeError: 'NoneType' object has no attribute 'click'
It can't login.

How to reproduce

Just follow the instruction on Readme.

Motivation

If this code isn't capable of using, what's the point to contruct it?

@nuwandda
Copy link

The scraper should be able to find the login button in order to click it. The issue is that the scrapers cannot find it with the given name. So, changing it to this solves the issue for me, but the class name can change in the future. Change line 86 in inscrawler/crawler.py to below
login_btn = browser.find_one('button[class="_acan _aiit _acap _aijb _acas _aj1-"]')

nuwandda added a commit to nuwandda/instagram-crawler that referenced this issue Mar 14, 2023
@BalaSruj
Copy link

BalaSruj commented Nov 1, 2024

Hi, I tried changing the line 86 in inscrawler/crawler.py to

login_btn = browser.find_one('button[class="_acan _aiit _acap _aijb _acas _aj1-"]').

But I am still facing the same issue, Any suggestion please?

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