linuxnoob
linuxnoob

Reputation: 685

Linux script to select an option & download resulting file from web page

Is there any way to write a linux script to press a button on a webpage and download the file generated? Here is the website.. http://kos.twojeip.net

I need to write a script that presses "Pobierz wszystkie" (Download ALL), Its the 3rd button from the left on top....

I was playing with lynx & wget but not having any joy as there are no html links..

Upvotes: 1

Views: 1103

Answers (1)

Jim Garrison
Jim Garrison

Reputation: 86774

All you have to do is enclose the extremely long URL in double quotes and use the -O (upper-case letter O) option to wget:

wget -O output.txt "http://.... extremely long URL "

Upvotes: 1

Related Questions