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
urlDict = scrape(query="Search Query", count=50, 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.0.tar.gz
(5.1 kB
view hashes)
Built Distribution
Close
Hashes for gi_scraper-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ffbd79fab04848096243d5a99689bf8db558fdc32d1c2997a4f7f61ca2c28e99 |
|
MD5 | b92f7ee65f1ab2829c2fc0cd5480d830 |
|
BLAKE2b-256 | 49486e0e1cbaf6daa80f729c99417ebee572ed9f58f34bd6545ab05d45cb90d1 |