Skip to content

Instantly share code, notes, and snippets.

@donpdonp
Created December 10, 2010 21:59
Show Gist options
  • Save donpdonp/736889 to your computer and use it in GitHub Desktop.
Save donpdonp/736889 to your computer and use it in GitHub Desktop.
webfinger commandline
$ webfinger don.park@gmail.com
<http://portablecontacts.net/spec/1.0> http://www-opensocial.googleusercontent.com/api/people/
<http://portablecontacts.net/spec/1.0#me> http://www-opensocial.googleusercontent.com/api/people/117199876291309469700/
<http://webfinger.net/rel/profile-page> http://www.google.com/profiles/don.park
<http://microformats.org/profile/hcard> http://www.google.com/profiles/don.park
<http://gmpg.org/xfn/11> http://www.google.com/profiles/don.park
<http://specs.openid.net/auth/2.0/provider> http://www.google.com/profiles/don.park
<describedby> http://www.google.com/profiles/don.park
<describedby> http://www.google.com/s2/webfinger/?q=don.park%40gmail.com&fmt=foaf
<http://schemas.google.com/g/2010#updates-from> https://www.googleapis.com/buzz/v1/activities/117199876291309469700/@public
$ cat /usr/local/bin/webfinger
#!/usr/bin/env ruby
require 'rubygems'
require 'redfinger'
Redfinger::finger(ARGV[0]).links.each do |l|
puts "<#{l.rel}>\t #{l.href}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment