Skip to content

Wayan123/scraping-google-images

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scraping Google Images

The original tutorial link is here: https://pyimagesearch.com/2017/12/04/how-to-create-a-deep-learning-dataset-using-google-images/

This method is suitable for downloading images from Google Images to be used in deep learning datasets, such as for YOLO or Transfer Learning.

How to use:

  1. Clone this repo with 'https://github.com/Wayan123/scraping-google-images.git'.
  2. Install requirements with 'pip install -r requirements.txt'.
  3. Open Google Images, then search for the images you want to download, for example, apples, and then scroll down until all the images cannot be displayed anymore.
  4. On the same page where we searched for the images, find Developer Tools or you can also use CTRL+SHIFT+I.
  5. Click on the console and then paste the code from js_code.js, then press enter and wait a moment until urls.txt is downloaded with the image URLs.
  6. Once urls.txt is downloaded, move it to the directory/folder of the git clone result, and also create a new directory to store the images that will be downloaded later.
  7. Run the Python code to start downloading images by typing "python image-downloader2.py -u urls.txt -o directory-name".
  8. Wait until the download process is complete, and you can view the contents of the image directory where the images will be downloaded one by one.

Happy Deep Learning!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages