0

I'd like a command line script, that when called with an URL, will download all images&media, or with suitable command line arguments, filter them. It is not as easy as doing a wget and grep, as it should filter away thumbnails, perhaps follow image links, etc.

For videos, there is a great script as noted in this answer. That basically picks the highest quality video off a Youtube or Vimeo page. Is there something similar for images or for the more general case?

2
  • Not script, try downthemall with firefox?
    – iMom0
    Feb 14, 2013 at 5:40
  • Thanks, know about that one, but I would prefer a script (can be automated, re-used) and one with a bit more built-in intelligence (e.g. pre-made filters for what to download). If it exists, that is!
    – RipperDoc
    Feb 14, 2013 at 8:02

1 Answer 1

0

In short, no generic ways. It has so called "generic" way for Youtube or Vimeo simply because these sites have standard URL formats for high res video, and the script is clever enough to build the URL from existing information in the web site (e.g. some patterns)

For images...

If it's targeting generic web sites using some popular image hosting services like Flickr, it may be possible to get the high res image URL from thumbnail one.

If it's targeting a specific website using less popular image hosting service, or it hosts images in their own web servers, it may be possible to check for common patterns in the site to find out the URL of high res image.

If it's targeting generic web sites using less popular image hosting service or self-image-hosting, basically the script needs to be intelligent enough to guess or find out the high res URL from information in the page. It may not always work because some sites built the URL dynamically using Javascripts or even display images in browser plugins like Flash...

You must log in to answer this question.

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