Comments (10)
I had the same issue, but it is working now fine after I unindented line 140 and 141.
from instagram-profilecrawl.
Seems like this is related to lines 127-141 of extractor.py.
If there are no comments on the post tags = comments[0].text
is causing script to fail.
I updated the else
statement to elif len(comments) == 1:
and that allowed the script to run fully. I'm not sure if that would have broken anything...
from instagram-profilecrawl.
I found what it generates the problem. If the post doesn`t have comments even from authors, I will get
TypeError: 'NoneType' object is not iterable
from instagram-profilecrawl.
@juliavollmer can you please post your code?
from instagram-profilecrawl.
Hi, i had the same issue and tried to fix but nothing works, someone can help?. I thinks is something wrong when the script try to "return" on line 142:
Line 142: return caption, location_url, location_name, location_id, lat, lng, img, tags, int(likes), int(len(comments) - 1), date, user_commented_list
Error:
Traceback (most recent call last):
File "crawl_profile.py", line 33, in
information, user_commented_list = extract_information(browser, username, limit_amount)
File "/home/administrador/instagram-profilecrawl/util/extractor.py", line 226, 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
from instagram-profilecrawl.
from instagram-profilecrawl.
Hi @justdvl, the problem occurs with this user https://www.instagram.com/whereistravel/ in the last post, i think is something wrong when try to get the statistics from each post and with this user betwen post 8 and 11 https://www.instagram.com/cristian.traveler.24/
from instagram-profilecrawl.
Looks like @alanwuha wrote this part of the code, maybe he will fix it soon :) If now I can look at it.
from instagram-profilecrawl.
Thanks a lot @justdvl i will wait for any update from @alanwuha 👍
from instagram-profilecrawl.
No response, so I have done the fix ;)
from instagram-profilecrawl.
Related Issues (20)
- Error in line 19 HOT 1
- Getting error in extractor.py HOT 2
- not getting commenst of users and who liked particular photo info HOT 1
- selenium.common.exceptions.NoSuchElementException HOT 5
- Error on crawl_profile.py HOT 3
- login failed HOT 8
- TypeError: get_logger() missing 1 required positional argument: 'show_logs' HOT 14
- webdriver error HOT 1
- unknown error: DevToolsActivePort file doesn't exist HOT 3
- Increase ultimate followers
- List of followings?
- question: is this an archive or is it still open?
- I want to participate in project to fix README.md
- INSTA HACK
- I don't understand what is going wrong? HOT 4
- crawl_profile_pi.py - Is missing.
- A
- Wrong class name
- AttributeError: 'str' object has no attribute 'capabilities'
- self.container on InstagramUser class fails
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from instagram-profilecrawl.