Skip to content

Small script which archives statuses and direct messages from Twitter

License

Notifications You must be signed in to change notification settings

codelurker/twitter_arc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twitter Arc

Python script which downloads your status updates and received direct messages from Twitter and stores them in a CSV file.

Dependencies

Usage

  1. Rename local_settings.py.template to local_settings.py.
  2. Edit local_settings.py and fill in your Twitter Username and Password.
  3. Save local_settings.py.
  4. Run terminal (in Applications > Utilities) and type python twitter_arc.py
  5. To update the backup run the command again. Only new status updates and direct messages since the last backup will be downloaded

General Notes

  1. The first time the script runs it will download all Tweets and Direct Messages on your account which Twitter exposes. At the time of writing this was 3200 statuses. Direct messages vary but rarely go about 1000.
  2. The script requests 200 updates at a time, so be sensible about running it.
  3. The script uses the CSV file to know what the last tweet requested was. If you delete or move the file the script will assume a backup has never been made and download all of your exposed Tweets again.
  4. The script can only backup what Twitter exposes. If you have more than 3200 tweets this means a full backup of all your tweets is not possible.
  5. It is normal for the script to ask Twitter twice for the status updates if nothing has changed.

Why CSV?

CSV was chosen as the output format as it requires no special databases to run and is legible on all computers. CSV can be opened by all popular spreadsheet packages and directly imported to databases if required.

License

Copyright © 2009 Matt Harris (http://themattharris.com)

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
“Software”), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Small script which archives statuses and direct messages from Twitter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published