Help us understand the problem. What is going on with this article?

(win)Pythonでsqlite3を用いてFirefoxの履歴を取得する(個人メモ)

More than 1 year has passed since last update.
GetHistory_Firefox.py
#<sqlite3>ライブラリをインポート
import sqlite3

#Firefoxの履歴が保存されているsqliteファイルを指定(◆◆◆は各自で変更)
conn = sqlite3.connect("C:\\Users\\◆◆◆\\AppData\\Roaming\\Mozilla\\Firefox\\Profiles\\◆◆◆\\places.sqlite")

# データベース接続とカーソル生成
cur = conn.cursor()

#executeを用いてSqlite3のコマンドを実行
#places.sqlite内のmoz_placesの項目にid,url,title,他・・・と列で並んで保存されている。
cur.execute("select * from moz_places")

#履歴に保存されている全てのTitleとURLを表示
for row in cur:
    print(row[2],row[1],)#Tile,URL
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした