Skip to content

Instantly share code, notes, and snippets.

@KoenRijpstra
Created June 9, 2015 09:06
Show Gist options
  • Save KoenRijpstra/257bbee5fa2f38fe3680 to your computer and use it in GitHub Desktop.
Save KoenRijpstra/257bbee5fa2f38fe3680 to your computer and use it in GitHub Desktop.
Google Results to CSV
var list = document.querySelectorAll('h3.r a');
var output = "";
[].forEach.call(list, function(item) {
output += '"' + item.innerHTML + '","' + item.href + '"\n';
});
console.log(output);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment