Skip to content

Commit

Permalink
feat: 0.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
CatchZeng committed Feb 25, 2021
1 parent 490e08a commit bd6d18e
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
19 changes: 15 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,12 @@ download.py
```py
from bing_images import bing

bing.download_images("cat", 20, output_dir="/Users/catchzeng/Desktop/cat",pool_size=10, file_type="png", force_replace=True)
bing.download_images("cat",
20,
output_dir="/Users/catchzeng/Desktop/cat",
pool_size=10,
file_type="png",
force_replace=True)
```

> - **output_dir**: the default output_dir is `os.path.join(os.getcwd(), "bing-images")`
Expand Down Expand Up @@ -106,12 +111,18 @@ Elapsed Time: 29.91s

### Download images with **filterui** filters

download-square.py
download-square-and-black-white.py

```py
from bing_images import bing

bing.download_images("cat", 20, output_dir="/Users/catchzeng/Desktop/cat", pool_size=20, file_type="png", filters='+filterui:aspect-square+filterui:color2-bw', force_replace=True)
bing.download_images("cat",
20,
output_dir="/Users/catchzeng/Desktop/cat",
pool_size=20,
file_type="png",
filters='+filterui:aspect-square+filterui:color2-bw',
force_replace=True)
```

![](./images/cat-bw.jpg)
![](./images/cat-bw.jpg)
Binary file modified images/cat-bw.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/cat.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = bing_images
version = 0.0.2
version = 0.0.3
author = CatchZeng
author_email = [email protected]
description = Python library to fetch image urls and download using multithreading from Bing.com.
Expand Down

0 comments on commit bd6d18e

Please sign in to comment.