-
Notifications
You must be signed in to change notification settings - Fork 258
Fix: 'NoneType' object has no attribute 'group' #359
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
base: master
Are you sure you want to change the base?
Conversation
JFYI - I applied your patches, didn't seem to work. I might be bad at python. 🐍 |
I think that the error I was trying to solve was a different one, but without the full output I can't tell if it's a problem with my fix. I was trying to fix a login problem with the cookies. |
i use your patch since yesturday. go the same error important to note: only appear in your update idk why |
Looks like you did fix the problem you intended to solve but the next error is ERROR 'NoneType' object is not subscriptable when trying to download files from a profile |
unfortunately, this really does lead to the subscriptable error |
< 8000 /td> | @@ -126,7 +126,7 @@ def _login(cls, username, password, session=None): | ||
session = cls._init_session(session) | |||
headers = copy.deepcopy(session.headers) | |||
homepage = "https://www.instagram.com/" | |||
login_url = "https://www.instagram.com/accounts/login/ajax/" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removing the ajax prefix messes up the login token resulting in error of expecting value: line1 column 1 (char 0)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry I am new to this. So what should the login_url be? Will it fix the "......object is not subscriptable" error ?
Hey @Dimah4x now I recieved an error "systemerror: Token not found" what does that mean? could you help me out pls? |
This issue is still persisting for me. Any attempts to fix this? |
Fix for the issue #349, seems like a regular expression didn't find the token due to a change in the html returned during the login