Comments (4)
Line 101 is: with webdriver.Chrome() as driver: # options are Chrome(), Firefox(), Safari()
from twitterscraper.
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.
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.
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)
- Search no longer works HOT 3
- Any reason you do it month-by-month? HOT 2
- Error when attempting to scrape Tweets HOT 5
- I keep receiving this syntax error. Any advice?
- TypeError: 'NoneType' object is not subscriptable HOT 19
- Timeout error when attempting to connect HOT 1
- It works for one profile but it doesn't work for another HOT 1
- TypeError: get_user() takes 1 positional argument but 2 were given HOT 2
- AttributeError: 'NoneType' object has no attribute 'find_all' HOT 2
- Twitter Doesn't Allow Search Without Logging In - Causes Scraper To Find 0 Tweets
- No Logging Currently
- Change into scraper following list and their respective followers HOT 3
- What level of access is required? HOT 7
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 twitterscraper.