상세 컨텐츠

본문 제목

Image Crwaing in Google Chrome for datasets

Tech/AI Study

by Enjoy Something 2019. 10. 4. 15:07

본문

image crawing in google chrome browser in ubuntu

 

 

first, install google api

 

$ sudo pip3 install --upgrade google-api-python-client

 

 

for selenium, install google chrome driver to type follow description

 

$ sudo pip3 install google-image-download

 

 

 

Here is code for crwaling images in chrome browser.

 

 

 

from google_images_download import google_images_download
response = google_images_download.googleimagesdownload()

arguments = {"keywords":"image_name","limit":100,"print_urls":True}
paths = response.download(arguments)
print(paths)

 

 

 

keywords mean image name for crawling

 

limit means the number of images

 

관련글 더보기

댓글 영역