This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

UNKNOWN

Project Description

Simple wrapper for yts.to API v2.

Installing

ytspy is available on PyPI.

$ pip install ytspy

Usage

import ytspy

# Data Format: json, xml or jsonp
yts = ytspy.YTS('json')

# list movies
# Used to list and search through out all the available movies.
# Can sort, filter, search and order the results
list = yts.movie.list_movies(page=None, limit=None, quality=None,
                minimum_rating=None, genre=None, sort_by=None,
                order_by=None, query_term=None, with_rt_ratings=Non)

# movie details
# Returns the information about a specific movie
movie = yts.movie.movie_details(movie_id, with_images=False, with_cast=False)

# movie suggestions
# Returns 4 related movies as suggestions for the user
suggestions = yts.movie.movie_suggestions(movie_id)

# movie comments
# Returns all the comments for the movie with ID of 10
comments = yts.movie.movie_comments(movie_id)

# movie reviews
# Returns all the IMDb movie reviews for the specified movie
reviews = yts.movie.movie_reviews(movie_id)

# movie parental guides
# Returns all the parental guide ratings for the specified movie
parental_guides = yts.movie.movie_parental_guides(movie_id)

# list upcoming
# Returns the 4 latest upcoming movies
list_upcoming = yts.movie.list_upcoming()

YTS Endpoint Parameters

QUALITY = ['ALL', '720p', '1080p', '3D']

GENRE = [
    'ALL', 'ACTION', 'ADVENTURE', 'ANIMATION', 'BIOGRAPHY',
    'COMEDY', 'CRIME', 'DOCUMENTARY', 'DRAMA', 'FAMILY',
    'FANTASY', 'FILM-NOIR', 'HISTORY', 'HORROR', 'MUSIC',
    'MUSICAL', 'MYSTERY', 'NEWS', 'ROMANCE', 'SCI-FI',
    'SHORT', 'SPORT', 'THRILLER', 'WAR', 'WESTERN'
]

SORT = [
    'title', 'year', 'rating', 'peers', 'seeds',
    'download_count', 'like_count', 'date_added'
]

DATA_FORMAT = [
    'json', 'xml', 'jsonp'
]

URI = [
    'movie_details', 'list_movies', 'movie_suggestions',
    'movie_comments', 'movie_reviews', 'movie_parental_guides',
    'list_upcoming'
]
Release History

Release History

This version
History Node

0.2.3

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
ytspy-0.2.3.tar.gz (1.8 kB) Copy SHA256 Checksum SHA256 Source Sep 9, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting