Wednesday, September 16, 2015

Get list of URLs that Google Search has indexed


Here is a quick and dirty way to get the list of google results for a domain.

1. Do a google search for   site:example.com
2. Open your browser's console
3. copy paste:

var elems = document.getElementsByTagName('cite')
for(var i=0; i<elems.length; i++) {
console.log(elems[i].innerText)
}