Home

Awesome

GrailbirdUpdater

For the most of the people who know me online, I've been dying to get a copy of my Twitter archive from Twitter for forever. I was finally given one and decided to write a quick script to keep my own archive up-to-date.

Turns out the contents in the archive are partial/trimmed API responses from the Twitter API, so it is actually possible to drop a whole API response in there, do some sorting and update the archive.

Installation

Install it yourself as:

$ gem install grailbird_updater

Or add this line to your application's Gemfile:

gem 'grailbird_updater'

And then execute:

$ bundle

Usage

grailbird_updater /path/to/twitter/archive

To run as a cronjob, with the gem installed using rvm (at /home/username/grailbird in this example)

@daily /bin/bash -l -c 'cd /home/username/grailbird && grailbird_updater /path/to/twitter/archive'

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

FAQ

tweets
├── README.txt
├── css
│   └─ application.min.css
├── data
│   └── js
│       ├── payload_details.js
│       ├── tweet_index.js
│       ├── tweets
│       │   ├── 2007_03.js
│       │   ├── 2007_04.js
│       │   ├── 2007_05.js
│       │   ├─ ... // you get the idea, I've been on Twitter a while
│       │   ├── 2013_02.js
│       │   ├── 2013_03.js
│       │   └── 2013_04.js
│       └── user_details.js
├── img
│   └─ ... // provided by Twitter
├── index.html
├── js
│   └─ ... // provided by Twitter
├── lib
│   └─ ... // provided by Twitter
├── README.txt
└── tweets.csv