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()
- for row in c.execute("SELECT calendardata,uri FROM calendarobjects"):
- f = open(row[1], "wb")
- data = row[0].encode("UTF-8")
- f.write(data + "\n")
- f.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement