GithubHelp home page GithubHelp logo

twog's Introduction

Jason Meridth Rocks!!!!

Twog

By Jason Meridth

Twog is a simple application that parses an RSS feed and will tweet any posts it hasn’t already tweeted. Once you obtain OAuth access to a twitter account and provide it in the configuration and run Twog, it will tweet a prefix, your blog title, and a URL of the post. There are also options of using Bit.ly for URL shortening and you can install Twog as a cron job for automated polling.

Install

sudo gem install twog

Writing to Twitter With OAuth

Please read this if you want to know how to get your Twitter OAuth consumer key/secret and access token/secret.

One you have those, run the command:

twog —conf

and a hidden configuration file will be created in the your home folder (~/.twog/conf.yaml). Once there, please fill it out with the information necessary to use this tool.

Seeing What Will Be Tweeted

To see what will be Tweeted before it is, type:

twog -o

or

twog —output

Shortening Blog Post URLs With Bitly API

In order to use Bitly for URL shortening, you’ll need to go to http://bit.ly and click the Sign Up link on the top right and get an account. Once you are logged-in you click the Account link in the same top right area. You will see your API Key in the middle of the page.

Put your bit.ly username and api key into the ~/.twog/conf.yaml file to be used in the code.

Automating Polling With Cron

To install twog as a crontab job, run the command:

twog —cronadd N

where N is the number of minutes you want twog to fire off every time.

To remove twog as a crontab job, run the command:

twog —cronrm

Crontab Info for all my non-*nix bretheren.

Runtime Dependencies

  • TwitterOauth: Writes tweets to Twitter (Ruby)
  • Whenever: Sets up cron jobs (Ruby)
  • Bitly: Shortens URLs (Ruby)

Developer Dependencies

  • RSpec: Test and Mocking framework (Ruby)

TODO

Please check the issues on Github for future features or bugs that need to be fixed

Contributors

Matt Dietz (cerberus98) special thanks
Chris MacGown (ChristopherMacGown)
Paul Voccio (pvo)
Joe Ocampo (agilejoe)

Copyright

Copyright © 2010 Jason Meridth. See LICENSE for details.

twog's People

Contributors

jmeridth avatar agilejoe avatar

Stargazers

 avatar

Watchers

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