Skip to content

Instantly share code, notes, and snippets.

@cam72cam
Created July 1, 2015 22:26
Show Gist options
  • Select an option

  • Save cam72cam/3dfff671e55fbd381901 to your computer and use it in GitHub Desktop.

Select an option

Save cam72cam/3dfff671e55fbd381901 to your computer and use it in GitHub Desktop.
curl stuff
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