Giter Site home page Giter Site logo

Comments (13)

laurent-d avatar laurent-d commented on May 15, 2024 1

Hi @timgrossmann, @nacimgoura found a similar issue on his nodejs script (https://github.com/nacimgoura/instagram-profilecrawl) .
The language of the browser change the instagram display. My chrome is in french and not in english.
Hope it's the same issue and it helps you.

from instagram-profilecrawl.

timgrossmann avatar timgrossmann commented on May 15, 2024

@laurent-d Hmm... well it works when crawling my own profile which also has videos.
Could you give me an username for which this error will occur?

from instagram-profilecrawl.

laurent-d avatar laurent-d commented on May 15, 2024

Thanks @timgrossmann !
I tried with your profile.
I use the last version of Selenium 3.33 for Mac.
Please see below

MacBook-Pro-de-Laurent:instagram-profilecrawl laurentdelacerda$ python3.5 crawl_profile.py grossertim
Extracting information from grossertim

  • Could not get information from post: https://www.instagram.com/p/BSHUbpSF61n/?taken-by=grossertim
    Traceback (most recent call last):
    File "crawl_profile.py", line 20, in
    information = extract_information(browser, username)
    File "/Users/laurentdelacerda/instagram-profilecrawl/util/extractor.py", line 117, in extract_information
    img, tags, likes, comments = extract_post_info(browser)
    File "/Users/laurentdelacerda/instagram-profilecrawl/util/extractor.py", line 34, in extract_post_info
    img = imgs[1].get_attribute('src')
    IndexError: list index out of range
    MacBook-Pro-de-Laurent:instagram-profilecrawl laurentdelacerda$

It stop when it arrive to video

from instagram-profilecrawl.

clbailey avatar clbailey commented on May 15, 2024

I'm getting the same error. @timgrossmann, which versions are you using for Python and Selenium?

I tried with Python 3.6.1 and Selenium 3.3.3 (edit: on MacOS 10.12). I'm not familiar with Python or Selenium, but I can try other tests if you have suggestions.

from instagram-profilecrawl.

nacimgoura avatar nacimgoura commented on May 15, 2024

Hi @clbailey ,
I was inspired by this project to make my own script in Javascript. If you know a little nodeJS and npm, you can test my program (https://github.com/nacimgoura/instagram-profilecrawl). There are still bugs but I fix them quickly.

from instagram-profilecrawl.

timgrossmann avatar timgrossmann commented on May 15, 2024

@laurent-d @clbailey This is really weird, there is no problem with videos for me... I actually covered that case in my script...

For the version information...
selenium (2.53.6)

Make sure to run it with:

python3.5 ...

from instagram-profilecrawl.

laurent-d avatar laurent-d commented on May 15, 2024

I tried without success same.. thanks for your support

from instagram-profilecrawl.

timgrossmann avatar timgrossmann commented on May 15, 2024

@laurent-d I'm really sorry you get that problems...
I will look into the code and try to fix it.

from instagram-profilecrawl.

timgrossmann avatar timgrossmann commented on May 15, 2024

@laurent-d Thank you, yes that's the problem. Thank you for pointing it out.

from instagram-profilecrawl.

timgrossmann avatar timgrossmann commented on May 15, 2024

@laurent-d Please pull the newest version and try again.

from instagram-profilecrawl.

khaeransori avatar khaeransori commented on May 15, 2024

@timgrossmann I still get this errror even when I already pull the newest version

I didn't see you're pushing new commits, your latest commit is 14 days ago

from instagram-profilecrawl.

timgrossmann avatar timgrossmann commented on May 15, 2024

@khaeransori

Update crawl_profile.py
timgrossmann committed on GitHub 3 days ago

from instagram-profilecrawl.

khaeransori avatar khaeransori commented on May 15, 2024

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.