Giter Site home page Giter Site logo

Comments (4)

noiob avatar noiob commented on May 29, 2024

the documentation isn't up to date, change line 14 in crawl_profile.py to

Settings.chromedriver_location = 'assets/chromedriver'

or install chromedriver in /usr/bin/chromedriver

from instagram-profilecrawl.

aylee17 avatar aylee17 commented on May 29, 2024

Thanks! I'm still getting an error, although it appears to be a different one now.

Traceback (most recent call last):
  File "crawl_profile.py", line 21, in <module>
    information, user_commented_list = extract_information(browser, username, Settings.limit_amount)
  File "/Users/aylsj/Documents/Projects/instagram-profilecrawl/util/extractor.py", line 441, in extract_information
    ig_user.get_user_info()
  File "/Users/aylsj/Documents/Projects/instagram-profilecrawl/util/extractor.py", line 78, in get_user_info
    self.bio = self._user_bio()
  File "/Users/aylsj/Documents/Projects/instagram-profilecrawl/util/extractor.py", line 53, in _user_bio
    bio = self.container.find_element_by_class_name('-vDIg').find_element_by_tag_name('span').text
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/selenium/webdriver/remote/webelement.py", line 305, in find_element_by_tag_name
    return self.find_element(by=By.TAG_NAME, value=name)
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/selenium/webdriver/remote/webelement.py", line 658, in find_element
    return self._execute(Command.FIND_CHILD_ELEMENT,
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/selenium/webdriver/remote/webelement.py", line 633, in _execute
    return self._parent.execute(command, params)
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
    self.error_handler.check_response(response)
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":"span"}
  (Session info: headless chrome=79.0.3945.88)

from instagram-profilecrawl.

noiob avatar noiob commented on May 29, 2024

It doesn't seem to find any profile info, make sure the profile exists and isn't private or anything (an easy way to test it is to open it in Chrome)

from instagram-profilecrawl.

aylee17 avatar aylee17 commented on May 29, 2024

I realized I'm getting this error message for the profiles that I tried before fixing the chromedriver error. But any new profiles I try after fixing chromedriver error, it works. Is it saving the history somewhere that is preventing me from running those profiles?

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.