Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Experimenting with SiteLookups on the console
def lookup_url(ident); "http://favstar.fm/users/#{ident}"; end
def save_result(ident, result); puts Hpricot(result).at(:title).inner_text; end
def logger; Rails.logger; end
def name; 'console'; end
include Point::SiteLookup
perform_lookup! 'samstokes'
# console is querying http://favstar.fm/users/samstokes
# @samstokes' (Sam Stokes) most faved tweets
@ept

This comment has been minimized.

Copy link

ept commented Mar 20, 2011

wow, awesome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.