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 details)
File details
Details for the file python-nozomi-1.1.1.tar.gz
.
File metadata
- Download URL: python-nozomi-1.1.1.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
51c7cfa75144eafc2a94d2c900e5a25be6543ab061db4bb568f7ceef47f22b55
|
|
MD5 |
2db194736e773341569446b61ba184b2
|
|
BLAKE2b-256 |
783fa80fbc6a042b8ae12ffdbf467c58c99c382733b52e34f0a1eca4e88222e8
|