Skip to content
🐦 A Twitter API tool that allows for basic interactions between users and scraping of words, hashtags, and even streaming them in real time.
Python
Branch: master
Clone or download
Latest commit ef09fc5 Jan 7, 2020
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Add base class to TwitterScraper, dont run stream Nov 6, 2019
.gitignore
LICENSE
README.md
main.py
requirements.txt

README.md

Twitter Scraper using Tweepy

Python based scraper that uses the Tweepy python library.

How-to

The TwitterScraper class contains the basic Twitter interactions such as Likes, Follows, Retweets, etc. You can also set up a new tweet listener through the StreamListener class.

IMPORTANT: You will need to apply for a Twitter Developer account & acquire API Authentication credentials. Read more in this tutorial by Real Python.

Once you authenticate your credentials, store them inside a config.py file. Make sure they're named like so:

  • API_KEY
  • API_SECRET_KEY
  • ACCESS_TOKEN
  • ACCESS_TOKEN_SECRET

If you wish to store these credentials somewhere else, make sure to change the imports accordingly in lines 3, 10 & 11 of twitter_scraper.py.

You can’t perform that action at this time.