We're calling on all EU-based Mozillians with iOS or iPadOS devices to help us monitor Apple’s new browser choice screens. Join the effort to hold Big Tech to account!

当サイトはユーザー体験を改善するためのメンテナンスを実施中に機能が制限される予定です。記事を読んでもあなたの問題が解決せず質問をしたい場合は、Twitter の @FirefoxSupport、Reddit の /r/firefox で、サポートコミュニティが皆さんを助けようと待機しています。

Mozilla サポートの検索

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

詳しく学ぶ

このスレッドはアーカイブに保管されました。 必要であれば新たに質問してください。

How can I export a text list of Firefox's download logs (including download date and source)?

  • 3 件の返信
  • 2 人がこの問題に困っています
  • 4 回表示
  • 最後の返信者: cor-el

more options

I want to preserve my data here. I've been able to use History Export (I think someone reuploaded it to another website after its deletion), but I can't find anything that lets me export a list in human-readable (or easily convertible to) format of download logs. Don't need anything fancy, just something that can export the file name, file size (optional), file source and date downloaded (needed).

Any suggestions? Using latest version of Firefox on Windows 8.1.

Thanks, new user btw.

I want to preserve my data here. I've been able to use History Export (I think someone reuploaded it to another website after its deletion), but I can't find anything that lets me export a list in human-readable (or easily convertible to) format of download logs. Don't need anything fancy, just something that can export the file name, file size (optional), file source and date downloaded (needed). Any suggestions? Using latest version of Firefox on Windows 8.1. Thanks, new user btw.

すべての返信 (3)

more options

The new Download Manager that uses the Library and the places.sqlite database file treats downloads like other history items and adds an annotation (places table: moz_annos) to identify these items as downloads.

moz_anno_attributes defines those entries as:
xx: downloads/metaData
xx: downloads/destinationFileURI
xx: downloads/destinationFileName

You can use the SQLite Manager extension to generate a list.

  1. Open Profile Directory -> places.sqlite -> Go
  2. Hit the "Execute SQL" tab
  3. Use a SELECT like this:
SELECT content AS Filename, datetime(dateAdded/1000000,'unixepoch','localtime') AS dateAdded, url AS Location, moz_anno_attributes.name AS Type
FROM moz_places, moz_annos, moz_anno_attributes
WHERE (moz_places.id = moz_annos.place_id) AND (moz_annos.anno_attribute_id = moz_anno_attributes.id) AND (moz_anno_attributes.name LIKE 'downloads/destinationFileURI')
ORDER BY dateAdded DESC

You can use (moz_anno_attributes.name LIKE 'downloads/destinationFileName') to see only the file name or use an OR construction to have both. WHERE (moz_places.id = moz_annos.place_id) AND (moz_annos.anno_attribute_id = moz_anno_attributes.id) AND ((moz_anno_attributes.name LIKE 'downloads/destinationFileURI') OR (moz_anno_attributes.name LIKE 'downloads/destinationFileName'))


この投稿は cor-el により に変更されました

more options

I got this far, but you confused me after that, I'm not at all familiar with SQLite or whatever. Can you explain what I should do from here? https://support.cdn.mozilla.net/media/uploads/images/2014-05-25-17-44-51-385e54.png

more options

You can paste the above posted SQLite code in the "Enter SQL" text area and click the "Run SQL" button to generate the list.

You can click the Actions button to export the list as a CSV file.

It would be better to get the '18' value from the moz_anno_attributes table (you would need moz_anno_attributes.id and moz_anno_attributes.name = 'downloads/destinationFileURI'), but I don't know if and how this can be done as SQLite code. The download file size is available in moz_annos (anno_attribute_id = '17' (downloads/metaData) in JSON format.