Created
June 21, 2013 21:56
-
-
Save marsam/5834649 to your computer and use it in GitHub Desktop.
useless example of mozilla places
This file contains hidden or 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/env python | |
| # -*- coding: utf-8 -*- | |
| """ | |
| https://developer.mozilla.org/en/docs/The_Places_database | |
| """ | |
| import os | |
| import sqlite3 | |
| db = os.path.expanduser('~/.mozilla/firefox/jepqyb8q.default/places.sqlite') | |
| conn = sqlite3.connect(db) | |
| with conn: | |
| for title, last_modified in conn.execute("select title, lastModified from moz_bookmarks where title like ? limit 20", (u'%ñ%',)).fetchall(): | |
| print(title) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment