Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

For example, I love military decorations, and here's Wikipedia's Service Ribbon, how can I download all the ribbon images at once instead of clicking them one by one and then select "Save image as"?

share|improve this question
    
It would be much quicked for you to google it. For example wikihow.com/Download-All-Images-on-a-Web-Page-at-Once –  Jaqenhghar Feb 20 at 6:52
1  
@Jaqenhghar That's for windows, does it work on Mac? –  Ave Maleficum Feb 20 at 7:47
add comment

3 Answers

up vote 7 down vote accepted

Automator

Use OS X's Automator.app to find, extract, and save the images from your current web page. The combination of Actions needed are:

  • Get Current Webpage from Safari
  • Get Contents of Webpages
  • Save Images From Web Content

To learn more about using Automator, see Apple's Mac Basics: Automator.

Automator

Terminal

An alternative approach is to use curl through the command line, What's the fastest and easiest way to download all the images from a website.

share|improve this answer
add comment

Using wget:

wget http://en.wikipedia.org/wiki/Service_Ribbon -p -A .jpg,.jpeg,.png -H -nd

-p (--page-requisites) downloads resources like images and stylesheets even when you don't use -r. -A specifies suffixes or glob-style patterns to accept. -H (--span-hosts) follows links to other domains like upload.wikimedia.org. -nd (--no-directories) downloads all files to the current directory without creating subdirectories.

You can install wget with brew install wget after installing Homebrew.

You might also just use curl:

curl example.tumblr.com|grep -o 'src="[^"]*.jpg"'|cut -d\" -f2|while read l;do curl "$l" -o "${l##*/}";done

Downloading images from Tumblr or Blogspot:

api="http://api.tumblr.com/v2/blog/example.tumblr.com/posts?type=photo&api_key=get from tumblr.com/api";seq 0 20 $(curl -s $api|jq .response.total_posts)|while read n;do curl -s "$api&offset=$n"|jq -r '.response.posts[].photos[].original_size.url';done|awk '!a[$0]++'|parallel wget -q

curl -L 'http://someblog.blogspot.com/atom.xml?max-results=499'|grep -io 'href="http://[^&]*.jpg'|cut -d\; -f2|awk '!a[$0]++'|parallel wget -q

share|improve this answer
    
Where do you get parallel from? –  patrix Mar 16 at 12:43
    
The multi-command samples are very hard to read with the formatting you used. Would you mind changing it to multi-line and using code-formatting? –  patrix Mar 16 at 13:27
    
I think "oneliners" like that are easier to read or understand, and it's easier to try them out interactively in a shell. You can install parallel and jq with brew install parallel jq after installing Homebrew or with sudo port install parallel jq after installing MacPorts. –  Lauri Ranta Mar 16 at 14:05
add comment

You can use Firefox and Flashgot, which is an extension which does pretty much exactly what you are looking for.

You can find Flashgot on the official Mozilla addons website here

Flashgot uses a download manager of your choice, either the one integrated in Firefox, curl, wget, or others. Personally I like DownThemAll!.

share|improve this answer
1  
Hi welcome to AskDifferent, I find if a question is worth answering it is worth upvoting. Also some instructions and a link may get you more upvotes. Please take the time to read the Answer and Question section of the help page. –  Deesbek Feb 21 at 0:20
    
@Deesbek expanded answer :) –  miniBill Mar 15 at 9:54
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.