Skip to main content

python-nozomi

Build Status Codacy Badge Codacy Badge PyPI version Python version

nozomi.la API in Python.

Features

  • Retrieving media posts
  • Downloading media

Installation

$ pip install python-nozomi

Upgrade

$ pip install python-nozomi --upgrade

Example Usage

Retrieve and download a single post provided a URL

from pathlib import Path
from nozomi import api

url = 'https://nozomi.la/post/26905532.html#veigar'

# Retrieve post metadata using the URL
post = api.get_post(url)

# Download the post
api.download_media(post, Path.cwd())

Retrieve and download multiple posts provided a list of URLs

from pathlib import Path
from nozomi import api

urls = [
    'https://nozomi.la/post/26905532.html#veigar',
    "https://nozomi.la/post/26932594.html#cho'gath",
    'https://nozomi.la/post/25802243.html#nautilus'
]

# Retrieve all of the post metadata using the URLs
posts = api.get_posts(urls)

# Download the posts
for post in posts:
    api.download_media(post, Path.cwd())

Retrieve and download all posts containing certain tags

# 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_with_tags(positive_tags):
    api.download_media(post, Path.cwd())

Retrieve all posts containing certain tags, ignoring blacklisted tags

# The blacklisted tags
negative_tags = ['chogath']

# Gets all posts with the tags 'veigar' and 'wallpaper' without the 'chogath' tag.
for post in api.get_posts_with_tags(positive_tags, negative_tags):
    api.download_media(post, Path.cwd())

Metadata

Release files for python-nozomi 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-nozomi 2.0.0
File Size Uploaded Provenance Actions
python-nozomi-2.0.0.tar.gz 8.5 kB Without provenance Details for python-nozomi-2.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for python-nozomi 2.0.0
File Interpreter ABI Platform Actions
python_nozomi-2.0.0-py3-none-any.whl Python 3 none any Details for python_nozomi-2.0.0-py3-none-any.whl

Total release size: 17.2 kB

Release files / python-nozomi-2.0.0.tar.gz

Download URL python-nozomi-2.0.0.tar.gz
Size 8.5 kB
Tags Source
SHA-256 checksum
How to use checksums
90b7dc9c3dc29f6ad8693cabb1a548ce6317a2d88ba45b65d65681feb6f43884
BLAKE2b-256 checksum
How to use checksums
9286e1959ccae0f7e56ef1c7ddc1fd8ab51868dd86703c423aecffb5962ec294
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

Release files / python_nozomi-2.0.0-py3-none-any.whl

Download URL python_nozomi-2.0.0-py3-none-any.whl
Size 8.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7f9c075cc482ce891afd5c864c684b871239be907e45692f501e93619be7b8e8
BLAKE2b-256 checksum
How to use checksums
ba76308bb4a5d002ed265196b4af94b4cc7379f6beac8036c21497e004f1d9dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

Security for python-nozomi 2.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page