LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   wget from remote index.htm in the linux box (https://www.linuxquestions.org/questions/linux-general-1/wget-from-remote-index-htm-in-the-linux-box-595294/)

frenchn00b 10-28-2007 03:37 PM

wget from remote index.htm in the linux box
 
Hi,

I downloaded a webpage, saved it into my disk, and would like to use wget on the zip file that contains.

I would like it to read this remote htm file in my harddisk, and then to get it from internet.
wget works only with pages in html ? I cannot believe

thanks for any infos !

farslayer 10-28-2007 07:52 PM

Please restate the question. I do not understand what you are trying to do.

wget can grab any file from the internet you point it at.. I grab zip and executable files with it all the time. (nVidia driver for instance from the command line)

frenchn00b 10-29-2007 02:08 PM

Quote:

Originally Posted by farslayer (Post 2940329)
Please restate the question. I do not understand what you are trying to do.

wget can grab any file from the internet you point it at.. I grab zip and executable files with it all the time. (nVidia driver for instance from the command line)

An other way:

I have a webpage that downloaded in my /tmp/index.htm

there is inside some freewares to donwnload (direct link!!, nota)
sooo if I do :
Code:

wget -A.zip -l1 -r http://www.balalalkjfkdlsjqfdl.com
it works

If now I do :
Code:

wget -A.zip -l1 -r /tmp/index.htm
no way ...

Would you have any ideas ?
thanks a lot

BrianK 10-29-2007 02:18 PM

Quote:

Originally Posted by frenchn00b (Post 2941259)
An other way:

I have a webpage that downloaded in my /tmp/index.htm

there is inside some freewares to donwnload (direct link!!, nota)
sooo if I do :
Code:

wget -A.zip -l1 -r http://www.balalalkjfkdlsjqfdl.com
it works

If now I do :
Code:

wget -A.zip -l1 -r /tmp/index.htm
no way ...

Would you have any ideas ?
thanks a lot

While I've not tested it, I think that wget needs to get items from a web server. In other words you can't just "wget /some/file" and expect it to behave the same as "wget http://some/file".

If you want it to work locally, install a webserver, put the html file in the webserver path, then "wget http://localhost/some/file"

That said, if all you're trying to do is parse links out of a file & wget them, there are better ways that installing a webserver just so you can use wget recursively.


All times are GMT -5. The time now is 03:08 AM.