Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question
    
Not script, try downthemall with firefox? –  iMom0 Feb 14 '13 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 '13 at 8:02
add comment

1 Answer

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

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.