Skip to content

inqueue/latest_tweets

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 

Repository files navigation

This is a simple script that fetch the latest tweets from your timeline using the new 1.1 API.

Motivation

The new 1.1 Twitter API only works with oauth, so you cannot fetch the latest tweets wihout sending the authorization header.

This is a bad news for someone who wants to fetch the latests tweets using pure javascript, without backend. So, my solution to this problem was to create a simple script that fetch periodically the tweets and pipe the result to a file (that I will read later from my JS).

Configuration

First you need to create an app in dev.twitter.com

With the app created, put the following in $HOME/.twapi:

screen_name:** your twitter username (e.g.: gianu).
tweet_count:** the number of tweets you want to retrieve.
consumer_key:** the consumer key provided by the app created in twitter.
consumer_secret:** the consumer secret provided by the app created in twitter.
oauth_token:** the auth_token provided by the app created in twitter.
oauth_secret:** the auth_secret provided by the app created in twitter.

Collaborators

Thanks:

For helping with bugfixing and improvements!

Bugs and Improvements

Feel free to report any bug that you found or create PR with improvements!

About

Fetch the latest tweets from your shell

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%