Skip to content

Instantly share code, notes, and snippets.

@not-william
Created October 23, 2019 07:17
Show Gist options
  • Save not-william/8f4129e893eb0c84fe2461c59ebb532a to your computer and use it in GitHub Desktop.
Save not-william/8f4129e893eb0c84fe2461c59ebb532a to your computer and use it in GitHub Desktop.
Obtains list of image paths from the google images results page.
urls = Array.from(document.querySelectorAll('.rg_di .rg_meta')).map(el=>JSON.parse(el.textContent).ou);
window.open('data:text/csv;charset=utf-8,' + escape(urls.join('\n')));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment