Skip to content

Instantly share code, notes, and snippets.

@Akhu
Last active January 30, 2020 12:18
Show Gist options
  • Save Akhu/a326bd1438e9f75ca0203135d356f27b to your computer and use it in GitHub Desktop.
Save Akhu/a326bd1438e9f75ca0203135d356f27b to your computer and use it in GitHub Desktop.
Quick Image Dataset building from Google image
  1. Go to google search and search for what you want
  2. Press alt+command+I to open developer tools
  3. In the developer tools select network tab
  4. In the file types select “img”
  5. Refresh the page
  6. In the filter box write “images?q=”
  7. Scroll down to the bottom to get as many pictures as you like
  8. On the “Name” pane right click an image
  9. Expand Copy
  10. Select Copy All as cURL
  11. Open terminal
  12. cd into your favorite folder
  13. Run the following command
  14. pbpaste | awk '{print substr($0, 1, length($0)-1) ">>" NR ".jpg"}' | bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment