8000 Fix: 'NoneType' object has no attribute 'group' by Zalez95 · Pull Request #359 · althonos/InstaLooter · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Zalez95
Copy link
@Zalez95 Zalez95 commented Jun 8, 2022

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

@bdmorin
Copy link
bdmorin commented Jun 8, 2022
/Users/bdmorin/Library/Python/3.9/bin/instalooter user ** ./**/ -e -v -m
2022-06-08 13:24:34 dredl0ck instalooter.cli[84584] NOTICE Starting download of `***`
2022-06-08 13:24:35 dredl0ck instalooter.cli[84584] CRITICAL 'NoneType' object is not subscriptable

JFYI - I applied your patches, didn't seem to work. I might be bad at python. 🐍

@Zalez95
Copy link
Author
Zalez95 commented Jun 8, 2022
/Users/bdmorin/Library/Python/3.9/bin/instalooter user ** ./**/ -e -v -m
2022-06-08 13:24:34 dredl0ck instalooter.cli[84584] NOTICE Starting download of `***`
2022-06-08 13:24:35 dredl0ck instalooter.cli[84584] CRITICAL 'NoneType' object is not subscriptable

JFYI - I applied your patches, didn't seem to work. I might be bad at python. snake

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.

@Sn0wAlice
Copy link

i use your patch since yesturday. go the same error
ERROR 'NoneType' object is not subscriptable

important to note: only appear in your update idk why

@matthewdickson1
Copy link
/Users/bdmorin/Library/Python/3.9/bin/instalooter user ** ./**/ -e -v -m
2022-06-08 13:24:34 dredl0ck instalooter.cli[84584] NOTICE Starting download of `***`
2022-06-08 13:24:35 dredl0ck instalooter.cli[84584] CRITICAL 'NoneType' object is not subscriptable

JFYI - I applied your patches, didn't seem to work. I might be bad at python. snake

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.

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

@Dimah4x
Copy link
Dimah4x commented Jul 28, 2022
/Users/bdmorin/Library/Python/3.9/bin/instalooter user ** ./**/ -e -v -m
2022-06-08 13:24:34 dredl0ck instalooter.cli[84584] NOTICE Starting download of `***`
2022-06-08 13:24:35 dredl0ck instalooter.cli[84584] CRITICAL 'NoneType' object is not subscriptable

JFYI - I applied your patches, didn't seem to work. I might be bad at python. snake

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.

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
from my view the script fails to send user_data to from_username function under pages.py in the instalooter library
and since the user_data is NONE it returns an error
a personal hunch is telling me the problem is with looters.py download function or the progress bar as the iterator is faulty?

< 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/"
Copy link

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)

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 ?

@KalikHub
Copy link

Hey @Dimah4x now I recieved an error "systemerror: Token not found" what does that mean? could you help me out pls?

@khanfarhan10
Copy link

This issue is still persisting for me. Any attempts to fix this?

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

Successfully merging this pull request may close these issues.

8 participants
0