Created
September 10, 2012 15:02
-
-
Save pdp7/3691356 to your computer and use it in GitHub Desktop.
Cleanup latitude image captures (Chumby)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for i in `wget -qO- 'http://www.flickr.com/services/rest/?method=flickr.photos.search&api_key=3ddb378de0dae3d12f1f9ec4e135827e&user_id=75040169@N05&page=1&per_page=500' |grep '<photo id=' |sed 's#.*<photo id="##' | sed 's#".*##'| tr '\t' ' ' | sed 's/ //g' | perl -ne 'print if ($i>1); $i++;'`; do echo deleting $i; sleep 1; flickcurl photos.delete $i; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment