Skip to content
/ nozzle Public

Nozzle is a Clojure library for streaming statuses from the Twitter Streaming API.

Notifications You must be signed in to change notification settings

ashafa/nozzle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nozzle

(use 'com.ashafa.nozzle)

(def username (System/getenv "TWITTER_ACCOUNT"))
(def passwd   (System/getenv "TWITTER_PASSWD"))

(defn my-callback 
   [message] 
   (println message))

(def noz (create-nozzle "filter" username passwd my-callback {:track "twitter"}))

Nozzle is a Clojure library for streaming tweets from the Twitter Streaming API . Nozzle abides to the guidelines for connecting/reconnecting to the streaming api on HTTP/Network errors, or intentionally disconnecting/reconnecting/updating streams. Nozzle is also capable of changing methods and query parameters while streaming with practically no loss of data.

For documentation, please view the API. It should be pretty straightforward, but if you are having any issues don’t hesitate to drop me a line.

Have fun.

Download and Installation

Nozzle uses Leiningen.

Install by adding …

[com.ashafa/nozzle "0.2.1"]

… to dependencies of your project.clj file.

Todos

  • API could use some love.

Participate

Please participate by reporting any bugs, suggesting a feature, or contributing code. With your help, Nozzle can be made even better.

About

Nozzle is a Clojure library for streaming statuses from the Twitter Streaming API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published