Open ahmadrabea opened 1 year ago
Hello, I'm stuck at your same point and i agree with your investigation. Have you found any fix or workaround?
I'm with the same problem, any solution?
@FlutterFraz unfortunately, No
I have encountered this same issue as well.
Same issue 2.4.4
instalooter.cli[43626] CRITICAL 'NoneType' object has no attribute 'group'
the problem is potentially in one of these two files...
https://github.com/althonos/InstaLooter/search?q=group
UPDATE:
the problem is that the html from the instagram response changed and no longer has window._sharedData
as expected on line 77 in _utils.py
match = re.search(r'window._sharedData = ({[^\n]*});', html)
the html doesn't have that text to find and match anymore, therefore the tool needs an update or it won't work anymore
https://github.com/althonos/InstaLooter/blob/master/instalooter/_utils.py#L77
Same issue 2.4.4
instalooter.cli[43626] CRITICAL 'NoneType' object has no attribute 'group'
the problem is potentially in one of these two files...
https://github.com/althonos/InstaLooter/search?q=group
UPDATE:
the problem is that the html from the instagram response changed and no longer has
window._sharedData
as expected on line 77 in_utils.py
match = re.search(r'window._sharedData = ({[^\n]*});', html)
the html doesn't have that text to find and match anymore, therefore the tool needs an update or it won't work anymore
https://github.com/althonos/InstaLooter/blob/master/instalooter/_utils.py#L77
Same issue 2.4.4
instalooter.cli[43626] CRITICAL 'NoneType' object has no attribute 'group'
the problem is potentially in one of these two files...
https://github.com/althonos/InstaLooter/search?q=group
UPDATE:
the problem is that the html from the instagram response changed and no longer has
window._sharedData
as expected on line 77 in_utils.py
match = re.search(r'window._sharedData = ({[^\n]*});', html)
the html doesn't have that text to find and match anymore, therefore the tool needs an update or it won't work anymore
https://github.com/althonos/InstaLooter/blob/master/instalooter/_utils.py#L77
Hi, having the same issue, and wondering if I could possibly use the same fix and where, my code looks somewhat like this: `from instalooter.looters import ProfileLooter import datetime import dateutil.relativedelta
looter = ProfileLooter("daquan", videos_only=True, template="{id}-{username}-{width}-{height}") looter.login("", "")
today = datetime.date.today() thismonth = (today, today - dateutil.relativedelta.relativedelta(days=28))
looter.download('./Memes_December_4', media_count=50, timeframe=thismonth)
loader.load_session_from_file(auth['username'], auth['username'] + auth['password']) except: loader.login(auth['username'], auth['password']) loader.save_session_to_file(auth['username'] + auth['password'])
and the response I get from: automated_youtube_channel> instalooter login Username: failmarket Password: 2023-02-20 11:24:12 DESKTOP-B227JC4 instalooter.cli[23176] CRITICAL 'NoneType' object has no attribute 'group' 2023-02-20 11:24:12 DESKTOP-B227JC4 instalooter.cli[23176] WARNING unclosed <ssl.SSLSocket fd=932, family=2, type=1, proto=0, laddr=('192.168.1.4', 59172), raddr=('157.240.194.174', 443)>
`
I have the same problem on debian 11.6 "bullseye"
I installed pip with:
apt install python3-pip
I then installed instalooter as my own user, with:
pip3 install --user instalooter --pre
Then I tried running the instalooter command:
sb@marquez:~$ cd Pictures/
sb@marquez:~/Pictures$ mkdir kaninen_daisy
sb@marquez:~/Pictures$ cd kaninen_daisy/
sb@marquez:~/Pictures/kaninen_daisy$ instalooter user kaninen_daisy
2023-04-17 21:28:52 marquez instalooter.cli[299841] CRITICAL 'NoneType' object has no attribute 'group'
sb@marquez:~/Pictures/kaninen_daisy$
Library version
Environment
Error description - runtime
Reproducible test case
Expected behaviour
download media
Actual behaviour
Hint
the regex return none here (match is none)
after investigation I can see that the res.text is not getting the expected response ,