Git Product home page Git Product logo

Comments (4)

 avatar commented on June 3, 2024 1

Line 101 is: with webdriver.Chrome() as driver: # options are Chrome(), Firefox(), Safari()

from twitterscraper.

MatthewWolff avatar MatthewWolff commented on June 3, 2024

Thanks for the heads up. Had some weird unicode characters that I deleted before the last commit, didn't realize they messed with indentation. Fixed and pushed.

from twitterscraper.

 avatar commented on June 3, 2024

The previous issue is fixed, but I encounter another error when it attempts to scrape Tweets:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/selenium/webdriver/common/service.py", line 76, in start
    stdin=PIPE)
  File "/usr/lib/python3.6/subprocess.py", line 729, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.6/subprocess.py", line 1364, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'chromedriver': 'chromedriver'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "./scrape.py", line 204, in <module>
    user.scrape(begin, end, args.by, args.delay)
  File "./scrape.py", line 83, in scrape
    self.__find_tweets(start, end, by, loading_delay)
  File "./scrape.py", line 101, in __find_tweets
    with webdriver.Chrome() as driver:  # options are Chrome(), Firefox(), Safari()
  File "/usr/local/lib/python3.6/dist-packages/selenium/webdriver/chrome/webdriver.py", line 73, in __init__
    self.service.start()
  File "/usr/local/lib/python3.6/dist-packages/selenium/webdriver/common/service.py", line 83, in start
    os.path.basename(self.path), self.start_error_message)
selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home
</pre>

from twitterscraper.

MatthewWolff avatar MatthewWolff commented on June 3, 2024

did you change the code to not use chromedriver? you’ll have to edit the file itself for that, specifically line 101. If that doesn’t fix the problem, you should open a separate issue

from twitterscraper.

Related Issues (14)

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.