Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- import sqlite3
- conn = sqlite3.connect("db.sqlite")
- c = conn.cursor()
- f = open("combined.vcf", "wb")
- for row in c.execute("SELECT carddata FROM cards"):
- data = row[0].encode("UTF-8")
- f.write(data + "\n\n")
- f.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement