Skip to main content

Nozomi API for retrieving images, videos, gifs.

Project description

python-nozomi

Build Status Codacy Badge PyPI version Python version

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


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)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page