# Gmail2hCard # Download your contact.csv from Gmail (in Gmail Export format) # Put the file location as the first argument # Usage: python gmail2hcard.py contacts.csv > contacts.html # Then upload the HTML to a publicly-available web server and use it for # import on Dopplr etc. # It's a dirty hacky script, and often outputs invalid hCard (the fn) # but good enough to just import into Dopplr. # (c) Tom Morris 2007. Lesser General Public Licence. # http://www.gnu.org/licenses/lgpl.html # If you wish to send me patches, e-mail me: tom@tommorris.org import csv, sys f = csv.reader(''.join(open(sys.argv[0]).readlines())) f.next() # skip first line print "\n\n
\n