Skip to content

Instantly share code, notes, and snippets.

@ianwhite
Forked from benschwarz/stream.rb
Created April 28, 2009 15:33
Show Gist options
  • Save ianwhite/103215 to your computer and use it in GitHub Desktop.
Save ianwhite/103215 to your computer and use it in GitHub Desktop.
Smoke.feed(:twitter) do
url "http://twitter.com/statuses/user_timeline/14431882.rss"
discard :title, /(@|#)/
end
Smoke.feed(:delicious) do
url "http://feeds.delicious.com/v2/rss/bschwarz?count=15"
end
Smoke.data(:flickr) do
url "http://api.flickr.com/services/feeds/photos_public.gne?id=36821533@N00&lang=en-us&format=json&nojsoncallback=1"
path :items
rename :published => :pubDate
end
# API suggestion, hows about:
Smoke.join(:twitter, :delicious, :flickr, :as => :stream) do
sort :pubDate
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment