Example using Python to query and scrape Microsoft Bing image search.
BeautifulSoup
and requests
packages are required to run this example.
If you are using the command line and pip
you should be able to install these with:
pip install bs4
pip install requests
To run, simply give the script an image search term. It will bing
search for it and drop the discovered images into the Pictures
subdirectory. In the following example we look for images of kitten
s.
python bing_image.py kitten