Advertisement
Guest User

Untitled

a guest
Apr 30th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 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. for row in c.execute("SELECT calendardata,uri FROM calendarobjects"):
  9. f = open(row[1], "wb")
  10. data = row[0].encode("UTF-8")
  11. f.write(data + "\n")
  12. f.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement