xanax¶
xanax is a multi-source media API client for Python. Typed access to images, photos, and video across multiple platforms — with both sync and async interfaces.
from xanax import Wallhaven
from xanax.sources.wallhaven.params import SearchParams
client = Wallhaven(api_key="your-api-key")
for wallpaper in client.iter_media(SearchParams(query="nature")):
client.download(wallpaper, path=f"{wallpaper.id}.jpg")
Getting Started
User Guide
API Reference
Project