althonos / InstaLooter

Another API-less Instagram pictures and videos downloader.
GNU General Public License v3.0
2k stars 259 forks source link

Exception has occurred: AttributeError 'NoneType' object has no attribute 'group' #360

Open samuelbraun04 opened 2 years ago

samuelbraun04 commented 2 years ago

PROBLEM DETAILS:

I'm getting the following error (full traceback lower in issue):

Exception has occurred: AttributeError
'NoneType' object has no attribute 'group'

at the commented line in my code:

from instalooter.looters import ProfileLooter
looter = ProfileLooter("dreamwifetheband") #error at this line
looter.download('C:/Users/samlb/Downloads/memeFiles', media_count=5)

MY VERSION:

My version of instalooter is 2.4.4 and I'm running it on Python 3.9.13

FULL TRACEBACK:

Traceback (most recent call last):
  File "c:\Users\samlb\Documents\MEME_VIDEOS\makeMemeVideos.py", line 9, in <module>
    looter = ProfileLooter("dreamwifetheband")
  File "C:\Users\samlb\AppData\Roaming\Python\Python39\site-packages\instalooter\looters.py", line 705, in __init__        
    super(ProfileLooter, self).__init__(**kwargs)
  File "C:\Users\samlb\AppData\Roaming\Python\Python39\site-packages\instalooter\looters.py", line 287, in __init__        
    token = get_shared_data(res.text)['config']['csrf_token']
  File "C:\Users\samlb\AppData\Roaming\Python\Python39\site-packages\instalooter\_utils.py", line 94, in get_shared_data   
    return json.loads(match.group(1))
AttributeError: 'NoneType' object has no attribute 'group'
Crisez0694 commented 2 years ago

same error that i got

JoeGarcia2 commented 2 years ago

Same with me

WilliamNT commented 2 years ago

Same here

BrandonMiller18 commented 2 years ago

Same here. Did anyone find a solution to this?

jjaaccoobb commented 2 years ago

+1

haiderkhalid commented 2 years ago

+1

atcapollo commented 2 years ago

+1

extralarge commented 2 years ago

+1

mohammadhoseinGhezelsofla commented 2 years ago

Hello. According to my research, Instagram no longer shows user information on the html page. For example, if we used to go to the link https://www.instagram.com/'username' the user data was available on the html page. But recently it is no longer the case. According to my research, they have transferred such information to another part, which was not very easy for me to obtain, considering that if we send wrong information to the Instagram site, it will ban us for 24 hours.

evdmolen commented 1 year ago

I have the same problem. I think that instagram updated the api and the instalooter is not updated anymore.

skmachine commented 1 year ago

Any chance instalooter starts working? I am using https://rapidapi.com/neotank/api/instagram130/ now to extract profile information from their /account-info endpoint and it works fine and returns account JSON with latest 12 posts, without requiring any cookies or login information, but it is a paid api.

kebigbo commented 3 months ago

Any chance instalooter starts working? I am using https://rapidapi.com/neotank/api/instagram130/ now to extract profile information from their /account-info endpoint and it works fine and returns account JSON with latest 12 posts, without requiring any cookies or login information, but it is a paid api.

How did you implement and replace instalooter with rapidapi?