Instaloader.get_location_posts(): TypeError: 'NoneType' object is not subscriptable
See original GitHub issueDescribe the bug ERROR: Failed to execute script main
To Reproduce
Command line:
instaloader.exe %1035567819 --login XXXXXXXXXXX -p XXXXXXXXXXX --no-compress-json --no-video-thumbnails
Account is OK, tested in browser.
Expected behavior Download images for that specific location: https://www.instagram.com/explore/locations/1035567819/talpa-bascoveni-teleorman/
Error messages and tracebacks
Loaded session from C:\Users\Queen Soft\AppData\Local\Instaloader\session-XXXXXXXXXXXXXXXXX.
Logged in as XXXXXXXXXXXXXXXXXXX.
Retrieving pictures for location 1035567819...
Traceback (most recent call last):
File "__main__.py", line 478, in <module>
File "__main__.py", line 475, in __main
File "__main__.py", line 445, in main
File "__main__.py", line 163, in _main
File "instaloader\instaloader.py", line 64, in call
File "instaloader\instaloader.py", line 1044, in download_location
File "instaloader\instaloader.py", line 894, in posts_download_loop
File "instaloader\instaloader.py", line 1014, in get_location_posts
TypeError: 'NoneType' object is not subscriptable
[8584] Failed to execute script __main__
Instaloader version 4.7.1
Additional context Windows 10 x64 2004 19041.928 I have full admin rights.
Older version of instaloader (4.6.2) worked a few days ago. Older version (4.6.2) is also not working right now.
Delete session file - login is OK - but same error afterwards. Session file is NOT created, but login says OK every time I run the command.
Session file does not exist yet - Logging in.
Logged in as XXXXXXXXXXXXXX.
Thank you.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:9 (2 by maintainers)
Top Results From Across the Web
python - NoneType object is not subscriptable when extracting ...
The error encountered is a TypeError (NoneType object is not subscriptable). from igramscraper.instagram import Instagram from time import ...
Read more >TypeError: 'NoneType' object is not subscriptable
I'm trying to check whether the user entered the correct path or not. when the output appears it doesn't give any error but...
Read more >typeerror: 'nonetype' object is not subscriptable json - You.com
If the header isn't set, request.json would return None. But the recommended to get json data in flask from a post request is...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Version 4.8 still not working.
Problem is still present for me. The only difference is the loop is happening after 71 posts, not 63 like before. I can send video recording, if it helps
Also, regular release 4.8.5 still has location download error.