3

I just came across this problem and my little knowledge in programming is killing me right now ;) So, i have a certain gallery on a image sharing website this is ImageBam, i have never downloaded images from this website.

right now I am using this code:

wget -P pics -H -nd -r -A '.jpg,.jpeg,.png,.gif,' -erobots=off http://www.imagebam.com/gallery/hwtfu6m7es3gun1emmpy2uheohrcckmt/

This code is downloading the whole website, when i only need to download content from a certain DIV, that includes thumbnails and original image.

Do you know if its possible to create a script in bash or any other language to download content from one div and not the whole webiste and all the possible hyperlinks ?

thanks for help

2 Answers 2

0

Scrapy would be a good option.

0

wget is not meant to parse files, only download them.

What you want is cURL which is like wget, but with the added ability to parse files for the desired target.

2
  • cool, thanks for that, but how can I make it download images and thumbnails ?
    – user29200
    Dec 23, 2012 at 23:43
  • Hmm, I think I am thinking of cURL in the context of PHP. In that case, you would use XPath to denote the target DIV. I’m guessing that you are not looking to do any programming, so I’ll check for a simpler option…
    – Synetech
    Dec 24, 2012 at 0:16

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .