Nozomi API for retrieving images, videos, gifs.
Project description
python-nozomi
nozomi.la (NSFW) 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 = ['kimetsu_no_yaiba', 'wallpaper']
# Gets all posts with the tags 'kimetsu_no_yaiba', '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 = ['nudity']
# Gets all posts with the tags 'kimetsu_no_yaiba', 'wallpaper' but no 'nudity' tag.
for post in api.get_posts(positive_tags, negative_tags):
api.download_media(post, Path.cwd())
Project details
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.1.1.tar.gz
(5.9 kB
view hashes)