Search code examples
pythonurlfirefoxbrowser-history

How can i grab the domain name from the firefox's places.sqlite file with python script


How can anyone grab the list of URLs from the Firefox's places.sqlite file? Can anyone help me out with any python script.


Solution

  • import sqlite3
    db = sqlite3.connect("<path_to>/places.sqlite")
    urls = db.execute("select url from moz_places").fetchall()