Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
[ $# -ne 2 ] && echo "usage: ./% en ja" && exit 1
read Q
Q=`echo $Q | sed 's/ /%20/g'`
curl -s "$1&tl=$2&dt=ex&dt=ld&dt=md&dt=qc&dt=rw&dt=rm&dt=ss&dt=t&dt=at&dt=sw&ie=UTF-8&oe=UTF-8&oc=1&otf=2&ssel=3&tsel=0&q=$Q" -H 'Accept-Encoding: gzip, deflate' -H 'Host:' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Firefox/31.0' | gunzip -d | cut -d'"' -f2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment