Coder Social home page Coder Social logo

archive-tweets-3's Introduction

Tweet archiver

This Python script and the related files will download your tweets from Twitter and save them in a plaintext archive file on your computer. It is intended to be run periodically to add recent tweets to an existing archive file. The script (in a slightly earlier version) is described in this blog post. If you already have an archive of tweets in ThinkUp, you might find this post useful in turning it into a plaintext archive. If you are starting an archive from scratch, this post and script by Tim Bueno will be helpful.

This version supports Python 3 and archives extended tweets.

The files in the repository are:

  • archive-tweets.py. This is the script that does the archiving. It can be stored anywhere and should be run periodically via a system like cron or launchd. The "Parameters" section at the top of the file should be edited to your Twitter user name, your time zone, and the directory where you want to keep the archive.
  • twitter.txt. This is the archive file itself, currently empty. It should be kept in a folder named twitter inside your Dropbox folder.
  • twitter-credentials. This file should be renamed .twitter-credentials and saved in your home directory. The values for consumerKey, consumerSecret, token, and tokenSecret must be provided by Twitter. Go to the Twitter developer site, click the "Create an app" link, and follow the instructions given there for creating an app. When you're done, you'll be given the four credentials—long strings of letters and numbers—you'll need.
  • lastID.txt. This file holds the ID number of the most recently archived tweet; it currently holds a dummy value you'll need to change. It should be kept in the same folder as twitter.txt.

You don't have to keep your archive in Dropbox, but that's a convenient place to be able to access your tweets from any of your computers. The directory for the archive can be changed by editing Line 10 of archive-tweets.py.

archive-tweets-3's People

Contributors

drdrang avatar willpapper avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.