Add-on downthemall - Help wrt "import from file" feature

Talk about add-ons and extension development.
Post Reply
111MilesToGo
Posts: 2
Joined: December 8th, 2016, 12:32 am

Add-on downthemall - Help wrt "import from file" feature

Post by 111MilesToGo »

Hi all, not sure whether this is the right place to ask for help regarding the downthemall add-on. I'm using the
dTa Manager -> Advanced -> Import from file
feature a lot, i.e. I have a plain text file with one URL per line, where the URL points to some website/file to be downloaded. Works like charm.

I would like to be able to specify a filename of my choice on each line in this text file, in order to make dTa rename the downloaded object to what I want it to be named.

Does anybody know whether this is possible, and if so what the syntax in the text file needs to be?

Thanks in advance. Member morat has posted a lot regarding downthemall on this forum...

PS: Of course, I have checked the original downthemall website, and I had also mailed the authors of dTa incl. donation, but to no avail.
morat
Posts: 6403
Joined: February 3rd, 2009, 6:29 pm

Re: Add-on downthemall - Help wrt "import from file" feature

Post by morat »

Not possible. DTA only has renaming masks.

Renaming mask
http://www.downthemall.net/howto/help/e ... ming-mask/

I would use wget for something like that.

http://en.wikipedia.org/wiki/wget
http://gnuwin32.sourceforge.net/packages/wget.htm

e.g.

Code: Select all

wget http://www.gnu.org/licenses/gpl.txt -O license.txt
111MilesToGo
Posts: 2
Joined: December 8th, 2016, 12:32 am

Re: Add-on downthemall - Help wrt "import from file" feature

Post by 111MilesToGo »

Thank you, morat, for authoritatively clarifying DTA's capabilities.

I will check into wget as soon as time allows. I am on Windows 7 64-bit and the current Firefox. Regarding wget for Windows, it bothers me that
http://gnuwin32.sourceforge.net/packages/wget.htm
is v1.11 only, since a vulnerability seems to have been closed on the way between 1.11 and the current 1.18. On the other hand,
https://eternallybored.org/misc/wget/
is 1.18, but it is reported to crash on large files and cause a false virus alarm.

More generally, my task is more complicated since it involves username and password input before downloading the desired object. I will check out wget anyway, not sure which version.
morat
Posts: 6403
Joined: February 3rd, 2009, 6:29 pm

Re: Add-on downthemall - Help wrt "import from file" feature

Post by morat »

You can use PowerShell.

http://en.wikipedia.org/wiki/PowerShell

e.g.

Code: Select all

$wc = New-Object System.Net.WebClient;
$wc.DownloadFile("http://www.gnu.org/licenses/gpl.txt", "license.txt");
Post Reply