在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):ohyicong/Google-Image-Scraper开源软件地址(OpenSource Url):https://github.com/ohyicong/Google-Image-Scraper开源编程语言(OpenSource Language):Python 87.1%开源软件介绍(OpenSource Introduction):Google Image ScraperA library to scrap google images. Pre-requisites:
Setup:
Usage:#Import libraries (Don't change)
from GoogleImageScrapper import GoogleImageScraper
import os
from patch import webdriver_executable
#Define file path (Don't change)
webdriver_path = os.path.normpath(os.path.join(os.getcwd(), 'webdriver', webdriver_executable()))
image_path = os.path.normpath(os.path.join(os.getcwd(), 'photos'))
#Add new search key into array ["cat","t-shirt","apple","orange","pear","fish"]
search_keys= ["cat","t-shirt"]
#Parameters
number_of_images = 10
headless = True
min_resolution=(0,0)
max_resolution=(1920,1080)
#Main program
for search_key in search_keys:
image_scrapper = GoogleImageScraper(webdriver_path,image_path,search_key,number_of_images,headless,min_resolution,max_resolution)
image_urls = image_scrapper.find_image_urls()
image_scrapper.save_images(image_urls) Youtube Video:Do remember to like, share and subscribe! |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论