webfinger 371 B

1234567891011121314151617181920
  1. #!/usr/bin/env python
  2. import sys
  3. from ostatus.webfinger import finger
  4. def run():
  5. args = sys.argv
  6. for arg in args[1:]:
  7. links = finger(arg)
  8. for link in links:
  9. try:
  10. print link['rel']
  11. print '\t%s' % link['href']
  12. except KeyError:
  13. continue
  14. if __name__ == '__main__':
  15. run()