Skip to content

Commit

Permalink
Added ProfileCard Widget Support
Browse files Browse the repository at this point in the history
  • Loading branch information
François Beaufort committed Nov 1, 2011
1 parent ccae7f9 commit 6431a3e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion following.py
Expand Up @@ -11,9 +11,14 @@

__author__ = 'scelfo@gmail.com (Tony Scelfo)'


import json
import sys


PROFILE_CARD_IFRAME= '<iframe width="301px" src="http://www.google.com/s2/u/0/widgets/ProfileCard?uid=%s&bc=0" frameborder="0"></iframe>'


def main(argv):
if len(argv) < 2:
print 'must specify an input file'
Expand All @@ -31,7 +36,7 @@ def main(argv):
# Friends can have more than one profileId, the first seems to be the
# one that google+ wants.
id = friend['profileIds'][0]
print '%s: https://plus.google.com/%s' % (friend['displayName'], id)
print PROFILE_CARD_IFRAME % id

if __name__ == '__main__':
main(sys.argv)

0 comments on commit 6431a3e

Please sign in to comment.