It\'s relatively easy to parse the output of the AJAX API using a scripting language:
#!/usr/bin/env python import urllib import json base = \'http://ajax.goog
many years later, you can install googler
googler -n 1 -c in -l en search something here --json
you can control the number of output page using the n flag.
To get only the url, simply pipe it to:
grep "\"url\""|tr -s ' ' |cut -d ' ' -f3|tr -d "\""