You are not logged in.

#1 2013-06-07 10:03:24

s1gsegV-
Member
Registered: 2013-06-07
Posts: 4

wget -r -A issue

First of all, I don't know if this is the best place to post this (it's my first post) so fell free to move it anywhere.

My question is related to the use of wget.

Imagine I want to download all PDFs from http://XX.com, some of them are at the main page, others are following links.

If I run "wget -r -l5 -H -nd http://XX.com", I get all the pdfs and other stuff; but if I run "wget -r -A*.pdf -l5 -H -nd http://XX.com", I only get pdfs which are at the main page, as links in index.html (fe.) are not followed because it is discarded (imo).

What am I doing wrong?

Thanks.

Offline

#2 2013-06-07 10:50:02

lukequaint
Member
From: Poland
Registered: 2010-03-20
Posts: 6

Re: wget -r -A issue

I don't know what are you doing wrong, but similiar problem you can find here.

For your example:

wget --accept "*.pdf" -r -l5 --no-parent site_address

should work.

Offline

Board footer

Powered by FluxBB