Skip to content

c24b/twitter-stream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

twitter-stream

Simple Twitter library to stream data filter by #hastag stored in a csv file

##Installation

  1. Get your credential for '''streaming Twitter API''': by creating a twitter app on twitter app page : https://apps.twitter.com/
  1. Install tweepy package
pip install tweepy

or install throught requirements.txt

pip install -r requirements.txt
  1. Configure your project into config.json file with:
  • the credentials given into your twitter application
  • the project info configuration: a database_name and the query (#hashtag)
  • if you want to filter on specific twitter accounts set a list of followed user account
  • set a timeout date to specify the end of the streaming archives (expressed in day format = dd/mm/yyyy)
{"consumer_key" :"",
"consumer_secret" : "",
"access_token" : "",
"access_token_secret" : "",
"database_name": "opencon",
"followed_users": false,
"hashtag":"#opencon",
"timeout_date":"18/11/2015"}

Stream it!

In command line or in a cron

$ python streamtweet.py &

About

Twitter library to stream data filter by #hastag

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages