Programming/Python

[Python] google images download 이용하여 구글 검색 이미지 저장하기

꾸준희 2021. 5. 20. 13:54
728x90
반응형

 

자신의 크롬 버전에 맞는 chromedriver 를 다운로드 해주고,

아래와 같이 git clone 하여 google images download 프로젝트 다운로드 한 뒤 사용하면 된다. 

$ git clone https://github.com/ultralytics/google-images-download
$ cd google-images-download
$ python3 bing_scraper.py --search 'cat' --limit 10 --download --chromedriver ./chromedriver

 

 

 

 

참고로 chromedriver 다운로드는 아래에서 하면 된다. 

https://chromedriver.chromium.org/downloads

 

ChromeDriver - WebDriver for Chrome - Downloads

Current Releases If you are using Chrome version 91, please download ChromeDriver 91.0.4472.19 If you are using Chrome version 90, please download ChromeDriver 90.0.4430.24 If you are using Chrome version 89, please download ChromeDriver 89.0.4389.23 If yo

chromedriver.chromium.org

 

사용중인 구글 크롬 버전 확인은 아래에서 한다. 

chrome://settings/help

구글창 -> Setting -> Help -> About Google Chrome 

 

 

 

참고자료 :  https://github.com/hardikvasa/google-images-download/issues/301

 

Unfortunately all 20 could not be downloaded because some images were not downloadable · Issue #301 · hardikvasa/google-images

Hello, does the framework work? I just have installed it on Ubuntu 18.04 by the pip (inside the virtualenv) and when I'm trying with or without the chromimdriver I'm receiving the same mess...

github.com

 

728x90
반응형