something about APPLE here: I am APPLE fans and like their products. By open this blog, I am not trying to BIAS toward APPLE company. Some of the fact below supported my decision. They introduced the computer MOUSE to the world. They changed the way we look at SMART Phone. They boosted up the use of 3G network. They were the first to use USB port as the main connection for computer system. They were the one who able to make a media centre to sync with every devices in your family. They made thing that work magically simple for us. Everything above and more to come... APPLE

Friday, June 27, 2014

Download multiple picture from internet using Terminal in Mac

I was doing this download magazine from a website for my sister. So that I can combine them into PDF using PC with script. But somehow the process was too long. Maybe I am suck in windows coding which I didn't have the ability to find out the combine PDF coding.
So last night I did some research and found out that MAC can perform the same. And with Automator, I can just combine all pictures into PDF using "New PDF from Images"

so let me share the code to download picture.


for single pic you use

curl -O http://img1.zazhimi.net/aazzmpic/1407/inred-14-07/001.jpg


but if you have multiple pics

curl -O http://img1.zazhimi.net/aazzmpic/1407/inred-14-07/[001-250].jpg


That is the only part you need to take care of when doing multiple images. 


Have a nice day

No comments:

Post a Comment