Advertisement
Guest User

Untitled

a guest
Apr 30th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. #!/usr/bin/python
  2.  
  3. import sqlite3
  4.  
  5. conn = sqlite3.connect("db.sqlite")
  6. c = conn.cursor()
  7.  
  8. f = open("combined.vcf", "wb")
  9. for row in c.execute("SELECT carddata FROM cards"):
  10. data = row[0].encode("UTF-8")
  11. f.write(data + "\n\n")
  12.  
  13. f.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement