GithubHelp home page GithubHelp logo

twitter_archive's Introduction

twitter_archive

Description

Archiving utility for Twitter.

I use my blog as a way to chronicle the things in my life, and I noticed with the introduction of Twitter into my normal routine I found that I was not blogging as much. What I wanted to be able to do is incorporate the twitters into my blog timeline. And while I was able to do some JavaScript trickery to display the twitters on my blog, they were not in the blog. Now if I ever want to go back and look up exactly what day my son got his second tooth, I can do so by digging through the blog archives.

twitter_archive supports multiple backends. I use Blogger, so I have support for that, as well as a very simple yaml archive backend that was intended for testing, but would provide a pretty good (and easy to parse) plan text backup of Twitter.

Usage

twitter_archive [options]

Options

-h, --help          Displays help message
-v, --version       Display the version, then exit
-V, --verbose       Verbose output
-I, --install       Install example yaml config file

Synopsis

Yaml Archive Backend

This requires a config file placed in the user’s home directory:

Example ~/twitter_archive.yml for use with the yaml archive backend:

accounts: - name: fuzzymonk - name: amperecat - name: jnunemaker yaml_file: /home/your-user-name/twitter_archive/posts.yml

You can enter mutiple twitter accounts, and it will simply interate through them. You should know that twitter_archive will make seperate requests for each account, so unles you have been IP whitelisted by Twitter you can hit their rate limits pretty easily.

Blogger Archive Backend

this requires a config file placed in the user’s home directory:

Example ~/twitter_archive.yml for use with the Blogger archive backend:

accounts: - name: fuzzymonk blogger_user: blogger-user # Normally your gmail address blogger_pass: blogger-password blogger_title: Twitter # The title you want for you blog post blogger_id: 1234567891234567890 # backend: blogger

To find your Blogger Blog ID refer to the Blogger Help Center

twitter_archive was intended to be run as a cron job, prolly once a day. It will post in a digest format, collecting all the twitters into one blog post.

Install

get the gem:

sudo gem install twitter_archive

Edit crontab to add twitter_archive:

$ crontab -e

Then Add a line like the following:

0 0 * * * twitter_archive > /home/your-user-name/logs/twitter_archive.log

This will run everyday at midnight. You can leave off the “> /home/…/twitter_archive.log” if you don’t want to keep logs.

License

see LICENSE file.

twitter_archive's People

Contributors

csexton avatar

Stargazers

Angus H. avatar silverton avatar Eric M avatar Max Mitchell avatar Michael Mullis avatar Harper Reed avatar  avatar

Watchers

 avatar James Cloos 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.