By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,988 Members | 1,350 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,988 IT Pros & Developers. It's quick & easy.

wget -p does not load my images

P: n/a

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
Oct 25 '06 #1
Share this Question
Share on Google+
7 Replies


P: n/a
On 2006-10-25, petr pilsl <pi***@goldfisch.atwrote:
>
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.
Oct 25 '06 #2

P: n/a
noi
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>


Oct 25 '06 #3

P: n/a
noi wrote:
>
Read the man again
wget -E -H -k -K -p http://<site>/<document>

# to download and all requisite links for <document>
but it does not !!
# wget -E -H -k -K -p www.goldfisch.at 2>&1 | grep saved
10:55:06 (1.44 MB/s) - `www.goldfisch.at/index.html' saved [10577]
10:55:06 (14.67 MB/s) - `www.goldfisch.at/lib/scripts/script.js' saved
[15381/15381]
10:55:07 (3.70 MB/s) - `www.goldfisch.at/lib/scripts/tw-sack.js' saved
[3881/3881]
10:55:07 (1.57 MB/s) - `www.goldfisch.at/lib/scripts/ajax.js' saved
[1647/1647]
10:55:07 (15.17 MB/s) - `www.goldfisch.at/lib/scripts/domLib.js' saved
[15903/15903]
10:55:07 (26.69 MB/s) - `www.goldfisch.at/lib/scripts/domTT.js' saved
[27990/27990]
10:55:07 (3.05 MB/s) -
`www.goldfisch.at/lib/plugins/searchindex/script.js' saved [3197/3197]
10:55:07 (17.25 MB/s) - `www.goldfisch.at/files/urchin.js' saved
[18093/18093]
as you can see, it does not download any image-files here.

thnx
peter
Oct 26 '06 #4

P: n/a
>
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
Oct 26 '06 #5

P: n/a
On 2006-10-26, petr pilsl <pi***@goldfisch.atwrote:
>>
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]
Oct 26 '06 #6

P: n/a
noi
On Thu, 26 Oct 2006 10:55:49 +0200, petr pilsl wrote this:
noi wrote:
>>
Read the man again
wget -E -H -k -K -p http://<site>/<document>

# to download and all requisite links for <document>

but it does not !!
# wget -E -H -k -K -p www.goldfisch.at 2>&1 | grep saved 10:55:06 (1.44
MB/s) - `www.goldfisch.at/index.html' saved [10577] 10:55:06 (14.67 MB/s)
- `www.goldfisch.at/lib/scripts/script.js' saved [15381/15381]
10:55:07 (3.70 MB/s) - `www.goldfisch.at/lib/scripts/tw-sack.js' saved
[3881/3881]
10:55:07 (1.57 MB/s) - `www.goldfisch.at/lib/scripts/ajax.js' saved
[1647/1647]
10:55:07 (15.17 MB/s) - `www.goldfisch.at/lib/scripts/domLib.js' saved
[15903/15903]
10:55:07 (26.69 MB/s) - `www.goldfisch.at/lib/scripts/domTT.js' saved
[27990/27990]
10:55:07 (3.05 MB/s) -
`www.goldfisch.at/lib/plugins/searchindex/script.js' saved [3197/3197]
10:55:07 (17.25 MB/s) - `www.goldfisch.at/files/urchin.js' saved
[18093/18093]
as you can see, it does not download any image-files here.

thnx
peter
Interesting when I used that command I got everything, url links, png
images and .js files. My downloaded version looks like online version.

12:57:31 (331.65 KB/s) - `www.goldfisch.at/lib/tpl/goldfisch/images/logo.gif' saved [3154/3154]

--12:57:31-- http://www.goldfisch.at/lib/tpl/gold...button-rss.png
=`www.goldfisch.at/lib/tpl/goldfisch/images/button-rss.png'
Reusing existing connection to www.goldfisch.at:80.
HTTP request sent, awaiting response... 200 OK
Length: 280 [image/png]

100%[================================================== ==================>] 280 --.--K/s

12:57:31 (17.80 MB/s) - `www.goldfisch.at/lib/tpl/goldfisch/images/button-rss.png' saved [280/280]

--12:57:31-- http://www.goldfisch.at/lib/tpl/gold...button-raw.png
=`www.goldfisch.at/lib/tpl/goldfisch/images/button-raw.png'
Reusing existing connection to www.goldfisch.at:80.
HTTP request sent, awaiting response... 200 OK
Length: 271 [image/png]


Oct 26 '06 #7

P: n/a
["Followup-To:" header set to comp.os.linux.misc.]
petr pilsl <pi***@goldfisch.at>:
noi wrote:

Read the man again
wget -E -H -k -K -p http://<site>/<document>
Now, compare that to this:
# wget -E -H -k -K -p www.goldfisch.at 2>&1 | grep saved
One of the two mentions "http://".

--
Any technology distinguishable from magic is insufficiently advanced.
(*) http://www.spots.ab.ca/~keeling Linux Counter #80292
- - http://www.faqs.org/rfcs/rfc1855.html Please, don't Cc: me.
Spammers! http://www.spots.ab.ca/~keeling/emails.html
Oct 27 '06 #8

This discussion thread is closed

Replies have been disabled for this discussion.