wget letöltések

Erről az oldalról szeretném letölteni két vagy három mélységben a nagyra becsült wget nevű alkalmazással az adatokat. Pontosabban csak az általában jpg formátumú képekre fáj a fogam.

Ezekkel a parancsokkal próbálkoztam, de sehol egyetlenegy jpg kép.

wget -r -l3 -A.jpg http://www.matkeramia.hu/galeria
wget -r -l4 -A jpg http://www.matkeramia.hu/galeria/
wget -r http://www.matkeramia.hu/galeria/

Tud valaki segíteni célom eléréseben?

Hozzászólások

esetleg ez (részlet a manuálból):

-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.

Ordinarily, when downloading a single HTML page, any requisite documents that may be needed to display it properly are not downloaded. Using -r together with -l can help, but since Wget does not ordinarily distinguish between external and inlined documents, one is generally left with "leaf documents" that are missing their requisites.

Fogod magad, és írsz egy levelet az oldal üzemeltetőjének/tulajdonosának, hogy mit szeretnél, és kérd el tőle a képeket. Nekem ez tűnik korrekt megoldásnak...

zeller kolléga javaslatának megfontolása mellett megér egy pillantást az oldal robots.txt-je, és a wget ide vonatkozó része:

'Wget can follow links in HTML, XHTML, and CSS pages, to create local versions of remote web sites, fully recreating the directory structure of the original site. This is sometimes referred to as recursive downloading." While doing that, Wget respects the Robot Exclusion Standard (/robots.txt).'

Én ezt a wget helyett a HTTrack Website Copier -re bíznám. Ezzel patentül meg lehet szerintem csinálni.