random inspiration to play with APIs

function 5hot(){ curl -sSqw'\n' \ --user-agent 'Mozilla/5.0 (Macintosh; PPC Mac OS X 10_8_7 rv:5.0; en-US) AppleWebKit/533.31.5 (KHTML, like Gecko) Version/4.0 Safari/533.31.5' \ --url 'https://www.reddit.com/r/randomsexiness/top.json?limit=100&t=all' \ | python3 -m simplejson.tool \ | grep url_overridden_by_dest \ | cut -d'"' -f4 \ | sort -R \ | head -5 }
get random inspiration to play with APIs
did that the other day while working on some "very important API research"
just add that fun to your .bashrc and then hit it with '5hot' from the terminal

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.