TypeError: 'NoneType' object is not iterable
See original GitHub issueGetting the following error after scrolling the profile and scrapping the first link:
Traceback (most recent call last): File "crawl_profile.py", line 33, in <module> information, user_commented_list = extract_information(browser, username, limit_amount) File "/Users/kevinleahey/Git/instagram-profilecrawl/util/extractor.py", line 225, in extract_information caption, location_url, location_name, location_id, lat, lng, img, tags, likes, comments, date, user_commented_list = extract_post_info(browser) TypeError: 'NoneType' object is not iterable
I looked at the extract_post_info method, but nothing stuck out to me. Any thoughts?
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (3 by maintainers)
Top Results From Across the Web
TypeError: 'NoneType' object is not iterable in Python
It means that the data variable is passing None (which is type NoneType), its equivalent for nothing. So ...
Read more >Python TypeError: 'NoneType' object is not iterable Solution | CK
The TypeError: 'NoneType' object is not iterable error is raised when you try to iterate over an object whose value is equal to...
Read more >TypeError: 'NoneType' object is not iterable in Python
The Python "TypeError: 'NoneType' object is not iterable" occurs when we try to iterate over a None value. To solve the error, figure...
Read more >typeerror: 'nonetype' object is not iterable: How to solve this ...
With Python, you can only iterate over an object if that object has a value. This is because iterable objects only have a...
Read more >Typeerror nonetype object is not iterable : Complete Solution
Typeerror nonetype object is not iterable error occurs when we try to iterate any NoneType object in the place of iterable Python objects....
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
I had the same issue, but it is working now fine after I unindented line 140 and 141.
No response, so I have done the fix 😉
https://github.com/timgrossmann/instagram-profilecrawl/pull/58