Skip to content

Instantly share code, notes, and snippets.

@gacha
Created January 29, 2010 20:12
Show Gist options
  • Save gacha/290069 to your computer and use it in GitHub Desktop.
Save gacha/290069 to your computer and use it in GitHub Desktop.
aggregate(:twitter, "http://search.twitter.com/search.atom?q=from:gacha") do |doc|
(doc/:entry).collect do |item|
{
:created_at => (item/:published).inner_html,
:value => (item/:content).inner_html
}
end
end
- :object:
:name: twitter
:feed:
:url: http://search.twitter.com/search.atom?q=from:gacha
:find:
:conditions:
:xpath: //status
:limit: 5
:created_at attr: :created_at
:attributes:
- :name: :created_at
:find:
:conditions:
:xpath: /created_at
:datetime: true
- :name: :text
:find:
:conditions:
:xpath: /text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment