jmd_imagescraper
An image scraping library for creating deep learning datasets.
This library is for creating deep learning datasets.
It uses DuckDuckGo for the image scraping as they have return nice big images and have some rather nice parameters to make your life easier, for example we can filter the searches to only return square images which are photos.
jmd_imagescraper.core contains the main scraping/downloading functionality.
jmd_imagescraper.imagecleaner contains an image cleaner you can use from within your notebook to clean up the results and delete anything unsuitable.
Install
pip install jmd_imagescraper
How to use
from jmd_imagescraper.core import *
from pathlib import Path
root = Path().cwd()/"images"
duckduckgo_search(root, "Puppies", "cute puppies", max_results=10)
Duckduckgo search: cute puppies
Downloading results into C:\Users\Joe\Documents\GitHub\jmd_imagescraper\images\Puppies
[WindowsPath('C:/Users/Joe/Documents/GitHub/jmd_imagescraper/images/Puppies/001.jpg'),
WindowsPath('C:/Users/Joe/Documents/GitHub/jmd_imagescraper/images/Puppies/002.jpg'),
WindowsPath('C:/Users/Joe/Documents/GitHub/jmd_imagescraper/images/Puppies/003.jpg'),
WindowsPath('C:/Users/Joe/Documents/GitHub/jmd_imagescraper/images/Puppies/004.jpg'),
WindowsPath('C:/Users/Joe/Documents/GitHub/jmd_imagescraper/images/Puppies/005.jpg'),
WindowsPath('C:/Users/Joe/Documents/GitHub/jmd_imagescraper/images/Puppies/006.jpg'),
WindowsPath('C:/Users/Joe/Documents/GitHub/jmd_imagescraper/images/Puppies/007.jpg'),
WindowsPath('C:/Users/Joe/Documents/GitHub/jmd_imagescraper/images/Puppies/008.jpg'),
WindowsPath('C:/Users/Joe/Documents/GitHub/jmd_imagescraper/images/Puppies/009.jpg'),
WindowsPath('C:/Users/Joe/Documents/GitHub/jmd_imagescraper/images/Puppies/010.jpg')]
from jmd_imagescraper.imagecleaner import *
display_image_cleaner(root)
Metadata
Release files for jmd-imagescraper 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| jmd_imagescraper-0.0.1.tar.gz | 15.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| jmd_imagescraper-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 28.1 kB
Release files / jmd_imagescraper-0.0.1.tar.gz
| Download URL | jmd_imagescraper-0.0.1.tar.gz |
|---|---|
| Size | 15.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f4c9cd49738d25bb1cf7016083108ca41bc313e2d0870361552716942f00fe91
|
|
BLAKE2b-256 checksum How to use checksums |
cbe80d092d98c10032f065b4c170ef5c066d28513cfdb7847b387f5dd280f0cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.2
|
Release files / jmd_imagescraper-0.0.1-py3-none-any.whl
| Download URL | jmd_imagescraper-0.0.1-py3-none-any.whl |
|---|---|
| Size | 13.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0258ffba5f99cf827ea6c343f32b5a294d9ce4318d9d4d71bfc87e2268add0e0
|
|
BLAKE2b-256 checksum How to use checksums |
a9ed4a85d715d5d6b35b6cc4e1a78abdefa4e165fd24ae6aeacc9fd4690a7949
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.2
|