[英]Retrieving data from web browser's download manager using java
I want to try creating a program that can automate the storing of web address that is available on every downloaded file on a web browser. 我想尝试创建一个程序,该程序可以自动存储Web浏览器上每个下载文件上可用的网址。
My problem is I don't know where to start. 我的问题是我不知道从哪里开始。
What am I planning to do is just save all the downloaded file's web addresses in a excel file. 我打算做的只是将所有下载文件的网址保存在excel文件中。
I think Firefox stores the download history in the places.sqlite
file in your Profile
folder. 我认为Firefox将下载历史记录存储在Profile
文件夹中的places.sqlite
文件中。 You would need to open and read that file, but you probably can't while Firefox is open (it has the file open). 您将需要打开并读取该文件,但在Firefox打开(文件已打开)的情况下可能不需要。
http://kb.mozillazine.org/Places.sqlite http://kb.mozillazine.org/Places.sqlite
From there, you can process the data in your Java app and then write an Excel file, perhaps using Apache POI (the Java API for Microsoft Documents) 从那里,您可以在Java应用程序中处理数据,然后使用Apache POI(Microsoft Documents的Java API)编写Excel文件。
Where and how, download history is stored varies from browser to browser . 下载历史记录的存储位置和方式因浏览器而异。 In case of Chrome on Mac it is store in the path ~/Library/Application\\ Support/Google/Chrome/Default/DownloadMetadata
as SQLite
format. 如果是Mac上的~/Library/Application\\ Support/Google/Chrome/Default/DownloadMetadata
, SQLite
格式存储在~/Library/Application\\ Support/Google/Chrome/Default/DownloadMetadata
路径中。
You need to write an application to parse the data and create xls 您需要编写一个应用程序来解析数据并创建xls
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.