O
O
Ozhmarinovets2019-08-05 21:13:58
Automation
Ozhmarinovets, 2019-08-05 21:13:58

How to make automatic unloading of information (address from where downloaded and name) about downloaded files?

I download files, for example, from one site. Is there a way to create a report, some file with information about the downloaded files. You need the following: 1. Direct link (from where the file was downloaded). 2. File name . And that's it.
Maybe there is some extension or ready-made solution. Or somehow it can be done.
I'm sure it's real, but I don't know how.
Here.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
anti4ek, 2019-08-15
@anti4ek

Install the Download Master browser plugin.
Allow intercepting download links.
In the DM settings, specify "Create a separate description file for each download *.txt".

K
kr_ilya, 2019-08-05
@kr_ilya

The download history in the browser is called

A
Alexander +, 2019-08-06
@AlexanderMi

Just. Ready is unlikely to be, because. specifically.
call chrome.downloads.search , something like this:

chrome.downloads.search({state:'complete'}, function(res) {
 for(let i= 0; i < res.length; i++) {
    //res[i].finalUrl - ссылка на файл
    //res[i].filename - путь сохраненного файла в ОС
    //.... что-то куда-то пишем .... например в переменную.
  }
  //Куда-то выгружаем, например в буфер обмена.
});

Next is displaying on the screen / saving to a file, etc.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question