Twitter Scraper using Selenium (Fun project)
Twitter scrapping can be done in variety of ways. This repository works with one such solution.
![]() |
---|
Search query on twitter |
![]() |
---|
Search query on twitter |
usage: tweet_scrape.py [-h] [-dt DT] [-dp DP] [-src SRC] [-nst NST]
[-dest DEST]
optional arguments:
-h, --help show this help message and exit
-dt DT Driver type, supported drivers: 0 - Chrome, 1 - Firefox Default
- 0
-dp DP Driver path, Default "" - in this case driver is assumed to be
specified on path
-src SRC Source of file that contains words that needs to be in the
tweets Default - "words.txt"
-nst NST Load tweets for nst seconds per topic and username. Default=50
-dest DEST Destination to which we need to store a tweet a line.
Default="tweets.txt"
json_parse.py
uses twitter API credentials that should be defined in a file “credentials.json”.