Skip to content

The YTS API Wrapper is a Python tool for accessing the YTS API. It allows users to fetch movie details, list movies, get suggestions, reviews, parental guides, and generate magnet URLs. With SSL verification, automatic retries, and flexible query options, it simplifies retrieving YTS movie data.

License

Notifications You must be signed in to change notification settings

Vaproh/YTS-api-wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YTS API Wrapper

Overview 🎬

This project is a Python wrapper for the YTS API that allows users to fetch movie details, list movies, get movie suggestions, reviews, parental guides, and generate magnet URLs for torrents.

Features ⭐

  • List movies with filters (quality, genre, sorting, etc.)
  • Fetch detailed information about a specific movie
  • Get movie suggestions based on a selected movie
  • Retrieve movie comments, reviews, and parental guides
  • Fetch upcoming movies
  • Generate magnet URLs for torrents
  • Configurable SSL verification and custom CA bundles
  • Automatic retries for failed requests with exponential backoff

Installation 🔧

Requirements

  • Python 3.x
  • requests
  • urllib3
  • certifi

Install Dependencies

pip install requests urllib3 certifi

Basic Usage 🚀

Initialize the API Wrapper

from yts_api import YTSAPI

yts = YTSAPI(verify_ssl=True)

List Movies

movies = yts.list_movies(limit=5, quality="1080p", genre="action")
if movies:
    print(movies)

Get Movie Details

movie_id = 10  # Replace with a valid movie ID
details = yts.movie_details(movie_id)
if details:
    print(details)

For detailed usage and more examples, refer to the documentation for more details.

License 📜

This project is open-source and available under the MIT License.

Disclaimer ⚠️

This project is for educational purposes only. Make sure to comply with copyright laws when using the YTS API.

About

The YTS API Wrapper is a Python tool for accessing the YTS API. It allows users to fetch movie details, list movies, get suggestions, reviews, parental guides, and generate magnet URLs. With SSL verification, automatic retries, and flexible query options, it simplifies retrieving YTS movie data.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages