Skip to content

ncrocfer/twitter-calendar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twitter contributions calendar

Like Github does it for its contributions calendar, this tool displays a user's tweets in a dynamic calendar using the awesome Cal-Heatmap library:

Twitter contributions calendar

Usage

It's a simple script to launch, so I don't create the setup.py file. To use it :

$ git clone https://github.com/ncrocfer/twitter-calendar.git
$ cd twitter-calendar
$ pip install -r requirements.txt

Create a new Twitter app and fill in the CONSUMER_KEY, CONSUMER_SECRET, ACCESS_KEY and ACCESS_SECRET variables. Then you can get the tweets specifying the user's account :

$ python twitter-calendar.py -u ncrocfer
[*] 399 tweets downloaded
[*] 598 tweets downloaded
...

You can now copy the generated tweets.json and index.html files in your web root directory and see the results :)

Notes

  • Due to a limitation imposed by Twitter, this script can only return up to 3,200 of a user's most recent Tweets.
  • It is a simple script for now, but many improvements are possible (for example the script can be placed in a CRON job, or it could be a real web app with the help of Flask or Django). I will look to do this in the future.

About

Twitter contributions calendar

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published