Grab all jpg's from flickr


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Grab all jpg's from flickr
# 1  
Old 08-01-2012
Grab all jpg's from flickr

Hi everyone, i'm trying to download all the jpg's that my school put on flickr and im trying to do this with wget via a bash script.

The pictures that im trying to pull are on this site : and below is my script that doesn't appear to be working

Quote:
#!/bin/bash
wget -q "http://www.flickr.com/photos/davenportuniversity/sets/72157629564160622/" -O -|grep 'post"'|cut -d\" -f2|while read id
do echo "Downloading $id.jpg"
wget -q -c "http://farm8.staticflickr.com/7219//$id.jpg"

done

Last edited by binary-ninja; 08-01-2012 at 05:10 PM..
# 2  
Old 08-01-2012
Try this:

Code:
#!/bin/bash
wget -q "http://www.flickr.com/photos/davenportuniversity/sets/72157629564160622/" -O -| grep -o 'http[^"]*_s.jpg' | sed 's/_s.jpg/.jpg/' | while read id
do
    echo "Downloading ${id##*/}"
    wget -q -c "$id"
done

This User Gave Thanks to Chubler_XL For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Wget JPG not working

Hi, I am new to Unix. Actually, I am using Terminal from MAC OSX Snow Leopard. I have installed XCode and wget 1.14 today. I just want to download all of the jpg files from a specific blog (from blogspot). But its not working. Here is the command I use: wget -r -nd -A jpg come-se All... (3 Replies)
Discussion started by: bruleke
3 Replies

2. Shell Programming and Scripting

print metadata to jpg

Hi all, I would like to write a scipt that gets gps informatoin from a jpg and print 's it on the lower left corner, In order to get the gps data I have found a tool called jhead. In know that with the help of the imagemagick command convert it is possible to print text on the pictures. ... (11 Replies)
Discussion started by: flash80
11 Replies

3. UNIX for Dummies Questions & Answers

Deleting all but JPG files

I would like to delete all files but keep all the .JPG files. How can this be accomplished? Thanks in advance (8 Replies)
Discussion started by: Xterra
8 Replies

4. Shell Programming and Scripting

Rename all ".JPG" files to ".jpg" under all subfolders...

Hi, Dear all: One question ! ^_^ I'm using bash under Ubuntu 9.10. My question is not to rename all ".JPG" files to ".jpg" in a single folder, but to rename all ".JPG" files to ".jpg" in all subfolders. To rename all ".JPG" to ".jpg" in a single folder, for x in *.JPG; do mv "$x"... (7 Replies)
Discussion started by: jiapei100
7 Replies

5. Web Development

Help with Flickr Geolocation script!

Hi everybody, it's me again http://phpbuilder.com/board/images/smilies/smile.gif I'm currently working on a script that will show a website visitor pictures of their location. The pictures come from the Flickr API and the address is grabbed from HostIP. <?php define('SORT',... (2 Replies)
Discussion started by: o0110o
2 Replies

6. Shell Programming and Scripting

how to send jpg as body

Hi, I ftp the .jpg file from windows to unix machine, now i need to send the jpg file as body to (not as attachment) outlook, can anyone send the sample code for this? (1 Reply)
Discussion started by: vasu.g
1 Replies

7. AIX

jpg image

Hello I would like to see an jpeg image with aix. It is possible ? how can i do ? thank you (4 Replies)
Discussion started by: pascalbout
4 Replies
Login or Register to Ask a Question