Google Image Scraper - A package that allows to fetch image urls and download images from google images.
Project description
Google-Image-Scraper
About
Image scraping is required many a times for web-based and machine learning projects. This module will help in fetching or downloading images from google.
Supported Systems
- Windows
Supported Browsers
- Chrome
How to Use?
This module is to be used along with chromedriver. Download correct version of chromedriver from here:-
Link - https://chromedriver.chromium.org/downloads
from gi_scraper import scrape
if __name__ == "__main__":
urlDict = scrape(query="Search Query", count=50, pCount=1, tCount=1, quality=True, downloadImages=False, saveList=False, defaultDir=False, dirPath="", driverPath="/path/to/chromedriver.exe")
Parameter | Description | Default |
---|---|---|
driverPath | Scraper(driverPath="Path to chromedriver.exe") | Current Working Directory |
query | Images that you are looking for. | - |
count | Number of Images required. (Max. : 150 for quality = True, Max. : 300 for quality = False). | 50 |
tCount | Number of threads (Max. : 8). | 1 |
quality | True: fetches only high image quality urls or images. | True |
downloadImages | True: download the images to a folder. | False |
saveList | True: save list of urls to a folder. | False |
defaultDir | True: save files to a folder created at current working directory. False: prompts for directory selection. | False |
dirPath | Set path to your default download/save directory. This will avoid prompting for path during download. This setting also overrides defaultDir in which download path is current working directory by setting it to entered path. | Not Set |
urlDict will contain the dictionary of image urls that can be used anywhere in the program.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gi_scraper-0.2.3.tar.gz
(5.2 kB
view hashes)
Built Distribution
Close
Hashes for gi_scraper-0.2.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06046f3fcab92ef78105af9b0781d89b4549080aa2db1563257903365aab62d4 |
|
MD5 | 806595fbdcb2daf41929de51960406f9 |
|
BLAKE2b-256 | faf3632fa5aca56065d97324dc09eccca6db715198ec0914d1af2b7ae296b6e2 |