InstaLooter icon indicating copy to clipboard operation
InstaLooter copied to clipboard

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

Open samuelbraun04 opened this issue 2 years ago • 12 comments

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'

samuelbraun04 avatar Jun 09 '22 19:06 samuelbraun04

same error that i got

Crisez0694 avatar Jun 21 '22 02:06 Crisez0694

Same with me

JoeGarcia2 avatar Jun 22 '22 03:06 JoeGarcia2

Same here

WilliamNT avatar Jun 27 '22 17:06 WilliamNT

Same here. Did anyone find a solution to this?

BrandonMiller18 avatar Jul 19 '22 04:07 BrandonMiller18

+1

jjaaccoobb avatar Jul 25 '22 23:07 jjaaccoobb

+1

haiderkhalid avatar Jul 29 '22 13:07 haiderkhalid

+1

atcapollo avatar Jul 30 '22 20:07 atcapollo

+1

extralarge avatar Aug 05 '22 08:08 extralarge

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.

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

evdmolen avatar Sep 17 '22 20:09 evdmolen

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.

skmachine avatar Apr 26 '23 15:04 skmachine