【问题标题】:How can i grab the domain name from the firefox's places.sqlite file with python script如何使用 python 脚本从 firefox 的 places.sqlite 文件中获取域名
【发布时间】:2014-12-20 18:57:09
【问题描述】:

任何人如何从 Firefox 的 places.sqlite 文件中获取 URL 列表? 任何人都可以帮助我使用任何 python 脚本。

【问题讨论】:

  • 如果你正在使用 SQLite 数据库,你应该使用sqlite3 module

标签: python url firefox browser-history


【解决方案1】:
import sqlite3
db = sqlite3.connect("<path_to>/places.sqlite")
urls = db.execute("select url from moz_places").fetchall()

【讨论】:

  • 显示错误信息 "sqlite3.OperationalError: no such table: moz_places"
猜你喜欢
  • 1970-01-01
  • 2010-10-17
  • 1970-01-01
  • 2011-05-11
  • 2022-01-15
  • 1970-01-01
  • 1970-01-01
  • 2019-11-15
  • 2022-11-18
相关资源
最近更新 更多