Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Script for saving a JSON archive of your tweets.

branch: master

Initial checkin

latest commit 5734dae5e4
Simon Willison authored August 13, 2009
Octocat-spinner-32 .gitignore Initial checkin August 13, 2009
Octocat-spinner-32 README.txt Initial checkin August 13, 2009
Octocat-spinner-32 fetch.py Initial checkin August 13, 2009
README.txt
mytweets
========

A simple script to back up all of your tweets in to a local JSON file.

Dependencies:

- httplib2 from http://code.google.com/p/httplib2/
- simplejson (unless Python 2.6) from http://pypi.python.org/pypi/simplejson/

Usage:

1. Create a file called config.py in the same directory as the script:

USERNAME = 'your-twitter-username'
PASSWORD = 'your-twitter-password'

2. Run the command like so:

python fetch.py

3. Your tweets will be saved to my_tweets.json

You can run the command again any time to save new tweets created since you 
last ran the script.
Something went wrong with that request. Please try again.