Last active
August 29, 2015 14:12
-
-
Save muness/54a421df1263abff0e5e to your computer and use it in GitHub Desktop.
Passpack to Lastpass format converter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# Based on https://plus.google.com/+TonyScelfo/posts/LvuRq9mToR1 | |
import csv | |
in_file = open('in.csv', 'rb') | |
out_file = open('out.csv', 'wb') | |
reader = csv.reader(in_file, delimiter=',', quotechar='"') | |
writer = csv.writer(out_file, delimiter=',', quotechar='"') | |
writer.writerow(['url','username','password','extra','name','grouping','fav']) | |
for row in reader: | |
writer.writerow([row[3], row[1], row[2], row[5], row[0], row[4], '']) | |
in_file.close() | |
out_file.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment