Code Monkey home page Code Monkey logo

bing_image_downloader's Introduction

Bing Image Downloader

A Python library to download bulk of images from Bing.com.

Disclaimer

This program lets you download many images from Bing.

Please do not download or use any image that violates its copyright terms.

Installation

pip install bing-image-downloader

or

git clone https://github.com/gurugaurav/bing_image_downloader
cd bing_image_downloader
pip install .

Usage

from bing_image_downloader import downloader
query = "Cat"
downloader.download(query, 
                    limit=100,  
                    output_dir='dataset', 
                    adult_filter_off=True, 
                    force_replace=False, 
                    timeout=60, 
                    verbose=True)

query_string : String or list of strings to be searched.

limit : (optional, default is 100) Number of images to download (per query).

output_dir : (optional, default is 'dataset') Name of output dir.

adult_filter_off : (optional, default is True) Disable adult content filtering.

force_replace : (optional, default is False) Delete folder if present and start a fresh download.

timeout : (optional, default is 60) connection timeout in seconds.

filter : (optional, default is "") filter for only certain types of images, choose from [line, photo, clipart, gif, transparent]

img_size : (optional) Minimum size of the images to download with _ separating the width and height respectively (i.e. 512_512)

verbose : (optional, default is True) Enable downloaded message.


You can also test the program by running test.py keyword

bing_image_downloader's People

Contributors

gurugaurav avatar samhaswon avatar steenstra avatar eugene-lam avatar charleslf2 avatar sid7631 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.