Popcorn Time API
📝
CONTRIBUTIONS
Before doing any contribution read CONTRIBUTING.
📧
CONTACT
Email: [email protected]
General Discord: https://discord.gg/dFD5HHa
Developer Discord: https://discord.gg/rxNNHYN9EQ
📥
INSTALLING
pip install popcorn-time
⚙
HOW TO USE
from popcorntime import PopcornTime
popAPI = PopcornTime()
🤝
PARAMETERS
CLASS PARAMETERS
- debug : bool, optional
- Enable for debug mode (Default: False)
- min_peers : int, optional
- Minimum number of peers to select torrent (Default: 0)
- min_seeds : int, optional
- Minimum number of seeds to select torrent (Default: 0)
FUNCTION PARAMETERS
-
FUNCTIONset_logging_level
- level : int, required
- Set the logging level
- Accepted values:
- 0: DEBUG
- 1: INFO
- 2: WARNING
- 3: ERROR
- 4: CRITICAL
- 5: NOTSET
- level : int, required
-
FUNCTIONset_base_url
- url : str, required
- Set the base url for the API
- url : str, required
-
FUNCTIONset_base_url
- url : str, required
- Set the base url for the API
- url : str, required
-
FUNCTIONset_min_seeds
- value : int, required
- Minimum number of seeds to select torrent
- value : int, required
-
FUNCTIONset_min_peers
- value : int, required
- Minimum number of peers to select torrent
- value : int, required
-
FUNCTIONget_shows_page
- page : (int, str), required
- Returns the shows page in json format
-
FUNCTIONget_movies_page
- page : (int, str), required
- Returns the movies page in json format
-
FUNCTIONget_show
- show_id : (int, str), required
- IMDB ID of the show
- Returns the show data in json format
- show_id : (int, str), required
-
FUNCTIONget_movie
- movie_id : (int, str), required
- IMDB ID of the movie
- Returns the movie data in json format
- movie_id : (int, str), required
-
FUNCTIONget_best_quality_torrent
- torrents : dict, required
- The dictionary of torrents provided by the API (get_show or get_movie)
- Returns the best quality torrent is json format
- torrents : dict, required
Legal Notice
This SDK is not meant to be used for illegal purposes, use it at your own risk and check your local regulations first.