Created
July 1, 2015 22:26
-
-
Save cam72cam/3dfff671e55fbd381901 to your computer and use it in GitHub Desktop.
curl stuff
This file contains hidden or 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
| for i in $(seq 2 30); do | |
| curl "https://ajax.googleapis.com/ajax/services/feed/load?v=2.0&q=http://kingjamesprogramming.tumblr.com/page/$i/rss&num=" 2> /dev/null | python -m json.tool | grep '"content"' | \ | |
| sed -e 's/ *"content": //' | \ | |
| sed -e 's/<\/*[a-z]*>//g' | \ | |
| sed -e 's/"//g' | \ | |
| sed -e 's/\\n//g' | \ | |
| sed -e 's/,$//' | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment