Skip to content
프로젝트

ohyicong/Google-Image-Scraper

GitHub에서 보기

소개

Google 이미지를 스크래핑하는 라이브러리

디자인 및 미디어

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
-2
in 15 days
-2
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Google Image Scraper

A library created to scrape Google Images.
If you are looking for other image scrapers, JJLimmm has created image scrapers for Gettyimages, Shutterstock, and Bing.
Visit their repo here: https://github.com/JJLimmm/Website-Image-Scraper

Pre-requisites:

  1. Google Chrome
  2. Python3 packages (Pillow, Selenium, Requests)
  3. Windows OS (Other OS is not tested)

Setup:

  1. Open command prompt
  2. Clone this repository (or download)
    git clone https://github.com/ohyicong/Google-Image-Scraper
    
  3. Install Dependencies
    pip install -r requirements.txt
    
  4. Edit your desired parameters in main.py
    search_keys         = Strings that will be searched for
    number of images    = Desired number of images
    headless            = Chrome GUI behaviour. If True, there will be no GUI
    min_resolution      = Minimum desired image resolution
    max_resolution      = Maximum desired image resolution
    max_missed          = Maximum number of failed image grabs before program terminates. Increase this number to ensure large queries do not exit.
    number_of_workers   = Number of sectioned jobs created. Restricted to one worker per search term and thread.
    
  5. Run the program
    python main.py
    

Usage:

This project was created to bypass Google Chrome's new restrictions on web scraping from Google Images. To use it, define your desired parameters in main.py and run through the command line:

python main.py

Youtube Video:

IMAGE ALT TEXT

IMPORTANT:

Although it says so in the video, this program will not run through VSCode. It must be run in the command line.

This program will install an updated webdriver automatically. There is no need to install your own.

Please like, subscribe, and share if you found my project helpful!

관련 프로젝트 살펴보기

불러오는 중…