question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Instaloader.get_location_posts(): TypeError: 'NoneType' object is not subscriptable

See original GitHub issue

Describe 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:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
queensoft666commented, Aug 5, 2021

Version 4.8 still not working.

0reactions
queensoft666commented, Mar 26, 2022

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.

TypeError: 'NoneType' object is not subscriptable
[20956] Failed to execute script __main__
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found