Click here to get back home

wget -p does not load my images

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
wget -p does not load my images petr pilsl 10-25-2006
Get Chitika Premium
Posted by petr pilsl on October 25, 2006, 11:52 am
Please log in for more thread options



sorry - no idea where to post my question, so I crossposted to a linux
and a html-authoring-group. Both groups might be familiar with wget.


wget -p http://www.goldfisch.at

does not load the images embedded in this website. I wonder why?
according to the man-page :

-p
--page-requisites
This option causes Wget to download all the files that are
necessary to properly display a given HTML page. This includes such
things as inlined images, sounds, and referenced stylesheets.


and the index-file contains images like:

<div id="logo"><a href="/goldfisch"><img
src="/lib/tpl/goldfisch/images/logo.gif"/></a></div>


thnx for any idea.
peter

Posted by Ben C on October 25, 2006, 12:36 pm
Please log in for more thread options


>
> sorry - no idea where to post my question, so I crossposted to a linux
> and a html-authoring-group. Both groups might be familiar with wget.
>
>
> wget -p http://www.goldfisch.at
>
> does not load the images embedded in this website. I wonder why?
> according to the man-page :

It does get the images, if you look at the files it actually downloads.
But you need -k as well to convert the links so it all works when you
open the page in a browser.

Posted by petr pilsl on October 26, 2006, 4:57 am
Please log in for more thread options


>
> It does get the images, if you look at the files it actually downloads.
> But you need -k as well to convert the links so it all works when you
> open the page in a browser.

No - it does not get the images. It does not download them as one can
see in the wget-output and by looking at the files that were downloaded.
Thats my problem:

# wget -p www.goldfisch.at 2>&1 | grep saved
10:56:24 (10.09 MB/s) - `www.goldfisch.at/index.html' saved [10577]
10:56:24 (14.67 MB/s) - `www.goldfisch.at/lib/scripts/script.js' saved
[15381/15381]
10:56:24 (3.70 MB/s) - `www.goldfisch.at/lib/scripts/tw-sack.js' saved
[3881/3881]
10:56:24 (1.57 MB/s) - `www.goldfisch.at/lib/scripts/ajax.js' saved
[1647/1647]
10:56:24 (15.17 MB/s) - `www.goldfisch.at/lib/scripts/domLib.js' saved
[15903/15903]
10:56:24 (26.69 MB/s) - `www.goldfisch.at/lib/scripts/domTT.js' saved
[27990/27990]
10:56:24 (3.05 MB/s) -
`www.goldfisch.at/lib/plugins/searchindex/script.js' saved [3197/3197]
10:56:24 (17.25 MB/s) - `www.goldfisch.at/files/urchin.js' saved
[18093/18093]

thnx,
peter

Posted by Ben C on October 26, 2006, 5:11 am
Please log in for more thread options


>>
>> It does get the images, if you look at the files it actually downloads.
>> But you need -k as well to convert the links so it all works when you
>> open the page in a browser.
>
> No - it does not get the images. It does not download them as one can
> see in the wget-output and by looking at the files that were downloaded.
> Thats my problem:
>
> # wget -p www.goldfisch.at 2>&1 | grep saved
> 10:56:24 (10.09 MB/s) - `www.goldfisch.at/index.html' saved [10577]
> 10:56:24 (14.67 MB/s) - `www.goldfisch.at/lib/scripts/script.js' saved
> [15381/15381]
> 10:56:24 (3.70 MB/s) - `www.goldfisch.at/lib/scripts/tw-sack.js' saved
> [3881/3881]
> 10:56:24 (1.57 MB/s) - `www.goldfisch.at/lib/scripts/ajax.js' saved
> [1647/1647]
> 10:56:24 (15.17 MB/s) - `www.goldfisch.at/lib/scripts/domLib.js' saved
> [15903/15903]
> 10:56:24 (26.69 MB/s) - `www.goldfisch.at/lib/scripts/domTT.js' saved
> [27990/27990]
> 10:56:24 (3.05 MB/s) -
> `www.goldfisch.at/lib/plugins/searchindex/script.js' saved [3197/3197]
> 10:56:24 (17.25 MB/s) - `www.goldfisch.at/files/urchin.js' saved
> [18093/18093]

Odd. I tried exactly your command and got this output, you can see
logo.gif etc. down at the bottom.

I'm using GNU Wget 1.10.1, maybe it's something to do with version.

10:07:33 (74.93 KB/s) - `www.goldfisch.at/index.html' saved [10577]
10:07:33 (52.63 MB/s) - `www.goldfisch.at/lib/styles/style.css' saved [1214/1214]
10:07:33 (71.65 KB/s) - `www.goldfisch.at/lib/scripts/script.js' saved
[15381/15381]
10:07:33 (368.47 KB/s) - `www.goldfisch.at/lib/scripts/tw-sack.js' saved
[3881/3881]
10:07:33 (78.54 MB/s) - `www.goldfisch.at/lib/scripts/ajax.js' saved [1647/1647]
10:07:34 (102.29 KB/s) - `www.goldfisch.at/lib/scripts/domLib.js' saved
[15903/15903]
10:07:34 (129.36 KB/s) - `www.goldfisch.at/lib/scripts/domTT.js' saved
[27990/27990]
10:07:34 (581.09 KB/s) - `www.goldfisch.at/lib/plugins/plugin/style.css' saved
[2326/2326]
10:07:34 (13.35 MB/s) - `www.goldfisch.at/lib/plugins/searchindex/style.css'
saved [196/196]
10:07:34 (423.50 KB/s) - `www.goldfisch.at/lib/plugins/searchindex/script.js'
saved [3197/3197]
10:07:34 (5.79 MB/s) - `www.goldfisch.at/lib/plugins/include/style.css' saved
[91/91]
10:07:34 (314.97 KB/s) - `www.goldfisch.at/lib/tpl/goldfisch/layout.css' saved
[6427/6427]
10:07:35 (143.69 KB/s) - `www.goldfisch.at/lib/tpl/goldfisch/design.css' saved
[9831/9831]
10:07:35 (15.02 MB/s) - `www.goldfisch.at/lib/tpl/goldfisch/plugins.css' saved
[252/252]
10:07:35 (396.88 KB/s) - `www.goldfisch.at/lib/tpl/goldfisch/print.css' saved
[3543/3543]
10:07:35 (417.19 KB/s) - `www.goldfisch.at/lib/tpl/goldfisch/images/logo.gif'
saved [3154/3154]
10:07:35 (17.80 MB/s) -
`www.goldfisch.at/lib/tpl/goldfisch/images/button-rss.png' saved [280/280]
10:07:35 (17.23 MB/s) -
`www.goldfisch.at/lib/tpl/goldfisch/images/button-raw.png' saved [271/271]
10:07:35 (27.15 MB/s) -
`www.goldfisch.at/lib/tpl/goldfisch/images/button-dw.png' saved [427/427]
10:07:35 (2.86 MB/s) -
`www.goldfisch.at/lib/exe/indexer.php?id=goldfisch&1161853728' saved [42/42]
10:07:35 (113.66 KB/s) - `www.goldfisch.at/files/urchin.js' saved [18093/18093]

Posted by noi on October 25, 2006, 1:00 pm
Please log in for more thread options


On Wed, 25 Oct 2006 17:52:43 +0200, petr pilsl wrote this:

>
> sorry - no idea where to post my question, so I crossposted to a linux and
> a html-authoring-group. Both groups might be familiar with wget.
>
>
> wget -p http://www.goldfisch.at
>
> does not load the images embedded in this website. I wonder why? according
> to the man-page :
>
> -p
> --page-requisites
> This option causes Wget to download all the files that are
> necessary to properly display a given HTML page. This includes such
> things as inlined images, sounds, and referenced stylesheets.
>
>
> and the index-file contains images like:
>
> <div id="logo"><a href="/goldfisch"><img
> src="/lib/tpl/goldfisch/images/logo.gif"/></a></div>
>
>
> thnx for any idea.
> peter

Read the man again

wget -m http://www.goldfisch.at # to mirror a site


wget -E -H -k -K -p http://<site>/<document>

# to download and all requisite links for <document>





Similar ThreadsPosted
Can I specify that some images load before others? December 1, 2005, 6:41 am
Impact of images on load performance November 29, 2004, 2:49 pm
How do I automatically load a different page ? November 10, 2004, 1:04 pm
how to load a different image on a web page February 5, 2007, 12:09 pm
How to load first.html into a certain
...
area?
November 20, 2008, 1:47 pm
Textarea style not applied on first load November 22, 2007, 4:29 pm
Troubleshooting page load delays: Whats the best approach? Software? July 26, 2006, 3:15 pm
Page load takes 15 seconds (Wild West Domains) September 6, 2008, 9:39 am
images won't appear in IE January 3, 2005, 8:40 pm
why a different tag for SVG images? April 4, 2006, 12:18 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap