Skip to main content

A python wraper for Yify's API.

Project description

YiPy

A Python wrapper for Yify API

Only public methods are implemented, no authorization required.

Examples

from yipy import YiPy

api = YiPy()

# Get movies list
movie_list = api.list(limit=10)

# Get movie details
movie_details = api.movie_details(movie_id=5496)

# Get movie suggestions
movie_suggestions = api.movie_suggestions(movie_id=5496)

# Get movie comments
movie_comments = api.movie_comments(movie_id=5496)

# Get movie reviews
movie_reviews = api.movie_reviews(movie_id=5496)

# Get movie parental_guides
movie_parental_guides = api.movie_parental_guides(movie_id=5496)

# Get list_ pcoming_movies
list_upcoming_movies = api.list_upcoming_movies()

# Get user details
user_details = api.user_details(user_id=16)

Available methods

list

Used to list and search through out all the available movies.

Can sort, filter, search and order the results.

Args:
    limit (int, optional): between 1 - 50 (inclusive)
        The limit of results per page that has been set

    page (int, optional): Used to see the next page of movies
        eg limit=15 and page=2 will show you movies 15-30

    quality (str, optional): 720p, 1080p, 3D Used to filter by quality

    minimum_rating (int, optional): between 0 - 9 (inclusive)
        Used to filter movie by a given minimum IMDb rating

    query_term (str, optional): Used for movie search, matching on:
        Movie Title/IMDb Code
        Actor Name/IMDb Code
        Director Name/IMDb Code

    genre (str, optional): Used to filter by a given genre
        See http://www.imdb.com/genre/ for full list

    sort_by (str, optional): Sorts the results by choosen value:
        title, year, rating, peers, seeds, download_count,
        like_count, date_added

    order_by (str, optional): asc, desc
        Orders the results by either Ascending or Descending order

    with_rt_ratings (bool, optional): Returns the list with the
        Rotten Tomatoes rating included

Returns:
    dict: the json response from the API

movie_details

Returns the information about a specific movie.

Args:
    movie_id (int): The ID of the movie

    with_images (bool, optional): When set the data returned will
        include the added image URLs

    with_cast (bool, optional): When set the data returned will
        include the added information about the cast

Returns:
    dict: the json response from the API

movie_suggestions

Returns 4 related movies as suggestions for the user.

Args:
    movie_id (int): The ID of the movie

Returns:
    dict: the json response from the API

movie_comments

Returns all the comments for the specified movie.

Args:
    movie_id (int): The ID of the movie

Returns:
    dict: the json response from the API

movie_reviews

Returns all the IMDb movie reviews for the specified movie.

Args:
    movie_id (int): The ID of the movie

Returns:
    dict: the json response from the API

movie_parental_guides

Returns all the parental guide ratings for the specified movie.

Args:
    movie_id (int): The ID of the movie

Returns:
    dict: the json response from the API

list_upcoming_movies

Returns the 4 latest upcoming movies.

Returns:
    dict: the json response from the API

user_details

Get a user's details.

Args:
    user_id (int): The ID of the user

    with_recently_downloaded (bool, optional):
        If set it will add the most recent downloads by the given user

Returns:
    dict: the json response from the API

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

yipy-0.0.7.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

yipy-0.0.7-py2.py3-none-any.whl (6.9 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file yipy-0.0.7.tar.gz.

File metadata

  • Download URL: yipy-0.0.7.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for yipy-0.0.7.tar.gz
Algorithm Hash digest
SHA256 dfd1dcfba3d1cdc00752729d676dd4c941d4bc4cf9d87add37c71314ad0ed7f4
MD5 80f2a57c414c7b8f9dfedb55b4fce3da
BLAKE2b-256 a00df8b8acbd0bfa5ded96782e96c5f25e3dabe3ac856852f8da8ac27daa4108

See more details on using hashes here.

File details

Details for the file yipy-0.0.7-py2.py3-none-any.whl.

File metadata

  • Download URL: yipy-0.0.7-py2.py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for yipy-0.0.7-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a07082b6f5a7b589f0bda18e8c6229cbe28866a6b9948076442e46a0c0038e55
MD5 bb732f098e07afdf81bc5e9b72f1cdbc
BLAKE2b-256 4b4d5a7ab6a7c78743056ebf260dc79e91db89e964b338a6ec369ff6da522791

See more details on using hashes here.

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