Skip to content
/ weeter Public

Translates Twitter's Streaming API to nicely formatted POST requests to a URL.

Notifications You must be signed in to change notification settings

weplay/weeter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Weeter accepts a set of Twitter users to follow, and makes a POST to your app with each new tweet (or tweet deletion).

Getting set up

$ bundle install

Make a copy of the weeter.conf.example file named weeter.conf. Twitter configuration, client app configuration and weeter configuration are defined in separate blocks. To configure how you connect to Twitter (basic auth or oauth), modify the twitter section of the configuration.

To configure how weeter connects to your client app -- its (optional) authentication, and urls -- modify the client app configuration section:

  • subscriptions_url: The URL at which to find JSON describing the Twitter users to follow (maximum 5,000 at the default API access level). Example content: [{"twitter_user_id":"19466709"},{"twitter_user_id":"759251"}]
  • publish_url: The URL to which new tweets should be posted. Example POST body: id=1111&twitter_user_id=19466709&text=Wassup
  • delete_url: The URL to which data about deleted tweets should be posted. Example DELETE body: id=1111&twitter_user_id=19466709

Weeter is configured to use 7337 as a default listening port.

Running weeter

$ bin/weeter_control start

This starts weeter as a daemon. For other commands and options, run:

$ bin/weeter_control --help

Running specs

$ bundle exec rspec spec/

To Do

  • Error reporting
  • Gemify
  • Make tweet filtering strategy (re-tweets, replies, etc.) more flexible
  • Add specs for client app proxy
  • integration tests

About

Translates Twitter's Streaming API to nicely formatted POST requests to a URL.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages