Nozomi API for retrieving images, videos, gifs.
Project description
python-nozomi
nozomi.la API in Python.
Features
- Retrieving image and video posts
- Downloading posts
Installation
$ pip install python-nozomi
Example Usage
Retrieve and download all posts containing certain tags
from pathlib import Path
from nozomi import api
# The tags that the posts retrieved must contain
positive_tags = ['veigar', 'wallpaper']
# Gets all posts with the tags 'veigar', 'wallpaper'
for post in api.get_posts(positive_tags):
api.download_media(post, Path.cwd())
Retrieve all posts containing certain tags with blacklisted tags
# The blacklisted tags
negative_tags = ['chogath']
# Gets all posts with the tags 'veigar', 'wallpaper' but no 'chogath' tag.
for post in api.get_posts(positive_tags, negative_tags):
api.download_media(post, Path.cwd())
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
python-nozomi-1.2.0.tar.gz
(7.0 kB
view hashes)