Skip to content

Latest commit

 

History

History
44 lines (26 loc) · 1.1 KB

README.md

File metadata and controls

44 lines (26 loc) · 1.1 KB

Twining

The twitter data mining tools that can help you gather information by keyword.

Requirements :

  • Python 3
  • pip3
  • Tweepy 3.8.0

How to :

Clone :

$ git clone https://github.com/syhbt/twining.git

Change directory to cloned project :

$ cd twining/

Install requirements :

$ pip install -r requirements.txt

Edit this code :

token = "ACCESS-TOKEN"
token_secret = "ACCESS-TOKEN-SECRET"
consumer_key = "API_KEY"
consumer_secret = "API_KEY_SECRET"

*) note : you can get the token and consmer key at the twitter developer pages.

*) More info : https://developer.twitter.com/en/docs/basics/authentication/guides/access-tokens

Usage :

$ python3 twining.py --help

Example :

$ python twining.py -k Porgramming -o Output.txt

This program will automatically retrieve data streaming from Twitter. The duration of data retrieval affects the amount of data obtained. The longer you run this program, the more data you get.