Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

자세히 살펴보기

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.