Bing Hashing Image Downloader
Python library to download bulk of images from Bing.com.
The downloader will obtain a sha1 hash of each image as it downloads and compare it to a hash of previous
downloads before saving it to ensure no duplicate images are saved.
This package uses async url, which makes it very fast while downloading.
Disclaimer
This program lets you download tons of images from Bing. Please do not download or use any image that violates its copyright terms.
Installation
git clone https://github.com/korreckj328/bing_hashing_image_downloader
cd bing_hashing_image_downloader
pip install .
or
pip install bing-hashing-image-downloader
Usage
from bing_hashing_image_downloader import downloader
downloader.download(query_string, limit=100, output_dir='dataset', adult_filter_off=True,
timeout=60, size='none' verbose=True)
query_string : String to be searched.
limit : (optional, default is 100) Number of images to download.
output_dir : (optional, default is 'dataset') Name of output dir.
adult_filter_off : (optional, default is True) Enable of disable adult filteration.
timeout : (optional, default is 60) timeout for connection in seconds.
filter : (optional, default is "") filter, choose from [line, photo, clipart, gif, transparent]
size : (optional, default is 'none') or a tuple can be entered to resize the image.
verbose : (optional, default is True) Enable downloaded message.
You can also test the programm by runnning test.py
Thanks
Thanks to the original author of this program. It formed the base for these improvements that I made for my
own use. You can see the original here: https://github.com/gurugaurav/bing_image_downloader
Metadata
Release files for bing-hashing-image-downloader 22.8.24.1326
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| bing_hashing_image_downloader-22.8.24.1326.tar.gz | 5.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bing_hashing_image_downloader-22.8.24.1326-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.6 kB
Release files / bing_hashing_image_downloader-22.8.24.1326.tar.gz
| Download URL | bing_hashing_image_downloader-22.8.24.1326.tar.gz |
|---|---|
| Size | 5.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ef3903690d3c402a96a6170db5934c30a05bf97cc9a27a37e4e02bbf8fd176bb
|
|
BLAKE2b-256 checksum How to use checksums |
afb911344d0d4fc97240d4641db7dfe86ae90d27198b9dfe269abd5ca962eaf6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.6
|
Release files / bing_hashing_image_downloader-22.8.24.1326-py3-none-any.whl
| Download URL | bing_hashing_image_downloader-22.8.24.1326-py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
60d6c05cff11e5a77e74bbbd0c90582e00a68920073f874702ea4f5afd5885cc
|
|
BLAKE2b-256 checksum How to use checksums |
90d2d5b97e71eea005f435e754d8be2b07047bd9b1509f79973115f55cfcdd0d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.6
|