Skip to content

Instantly share code, notes, and snippets.

@samstokes
Created March 20, 2011 05:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samstokes/878135 to your computer and use it in GitHub Desktop.
Save samstokes/878135 to your computer and use it in GitHub Desktop.
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
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