Created
October 23, 2019 07:17
-
-
Save not-william/8f4129e893eb0c84fe2461c59ebb532a to your computer and use it in GitHub Desktop.
Obtains list of image paths from the google images results page.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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