A modern, async Python library for DuckDuckGo image searching and crawling.
Project description
ddgimage
A modern, asynchronous Python client for searching images on DuckDuckGo.
Features
- Async image search using DuckDuckGo's public endpoints
- Extract image URLs from arbitrary web pages
- Download images asynchronously
- Fully type-annotated and tested
Installation
pip install ddgimage
Usage
Basic Image Search
from ddgimage import Client
import asyncio
async def main():
client = Client()
async for result in client.asearch("red panda", max_results=5):
print(result.title, result.image_url)
asyncio.run(main())
Extract Images from a Web Page
from ddgimage import Client
import asyncio
async def main():
client = Client()
images = await client.get_images_from_page("https://example.com")
print(images)
asyncio.run(main())
Notes
- This project is not affiliated with DuckDuckGo.
- DuckDuckGo may block automated requests or change their endpoints at any time.
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ddgimage-0.1.0.tar.gz
(6.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ddgimage-0.1.0.tar.gz.
File metadata
- Download URL: ddgimage-0.1.0.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
57d32e98bd0af6da0d465f1d8fbec193afee3c3cdaa75072e39d2be7fe6faef0
|
|
| MD5 |
ab9f725838ae588ecf0621646ce21509
|
|
| BLAKE2b-256 |
d44e3ba90755f7cc11ad0c8861849f73e8839e4f65d7b7a47137371537f923e1
|
File details
Details for the file ddgimage-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ddgimage-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dcb244003e27f184881cbe86f310f78fac4e97d83085129efb662e4edb2aa2ff
|
|
| MD5 |
ae308c449aeada85300c4762cd174f1a
|
|
| BLAKE2b-256 |
513e42885aaac9355f6fac4899d9352140234e2e78f01c852596a939c6871dbe
|