Giter Site home page Giter Site logo

Comments (10)

juliavollmer avatar juliavollmer commented on May 14, 2024 1

I had the same issue, but it is working now fine after I unindented line 140 and 141.

from instagram-profilecrawl.

kleahey avatar kleahey commented on May 14, 2024

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.

ZeusFSX avatar ZeusFSX commented on May 14, 2024

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.

wemakefuture avatar wemakefuture commented on May 14, 2024

@juliavollmer can you please post your code?

from instagram-profilecrawl.

davasu avatar davasu commented on May 14, 2024

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.

justdvl avatar justdvl commented on May 14, 2024

from instagram-profilecrawl.

davasu avatar davasu commented on May 14, 2024

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.

justdvl avatar justdvl commented on May 14, 2024

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.

davasu avatar davasu commented on May 14, 2024

Thanks a lot @justdvl i will wait for any update from @alanwuha 👍

from instagram-profilecrawl.

justdvl avatar justdvl commented on May 14, 2024

No response, so I have done the fix ;)

#58

from instagram-profilecrawl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.