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.
- 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
- Python 3.x
requestsurllib3certifi
pip install requests urllib3 certififrom yts_api import YTSAPI
yts = YTSAPI(verify_ssl=True)movies = yts.list_movies(limit=5, quality="1080p", genre="action")
if movies:
print(movies)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.
This project is open-source and available under the MIT License.
This project is for educational purposes only. Make sure to comply with copyright laws when using the YTS API.