Popcorn Time API

📝 CONTRIBUTIONS
Before doing any contribution read CONTRIBUTING.
📧 CONTACT
Email: amng835@gmail.com
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
-
FUNCTION
set_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
-
FUNCTION
set_base_url- url : str, required
- Set the base url for the API
- url : str, required
-
FUNCTION
set_base_url- url : str, required
- Set the base url for the API
- url : str, required
-
FUNCTION
set_min_seeds- value : int, required
- Minimum number of seeds to select torrent
- value : int, required
-
FUNCTION
get_server_status- Returns the server status in json format
-
FUNCTION
get_shows_stats- Returns the show stats in json format
-
FUNCTION
get_shows_page- page : (int, str), required
- Returns the shows page in json format
-
FUNCTION
get_movies_stats- Returns the movies stats in json format
-
FUNCTION
get_movies_page- page : (int, str), required
- Returns the movies page in json format
-
FUNCTION
get_show- show_id : (int, str), required
- IMDB ID of the show
- Returns the show data in json format
- show_id : (int, str), required
-
FUNCTION
get_movie- movie_id : (int, str), required
- IMDB ID of the movie
- Returns the movie data in json format
- movie_id : (int, str), required
-
FUNCTION
get_random_show- Returns the show in json format
-
FUNCTION
get_random_movie- Returns the movie in json format
-
FUNCTION
get_best_torrent- torrents : dict, required
- The dictionary of torrents provided by the API (get_show or get_movie)
- min_quality : int, optional
- Minimum quality to select torrent (Default: '1080')
- revert_to_default : bool, optional
- Revert to default item if no torrents are found (Default: False)
- Returns the best torrent is json format
- torrents : dict, required
-
FUNCTION
remove_cam_torrents- torrents : dict, required
- The dictionary of torrents provided by the API (get_show or get_movie)
- Returns all the torrents without cam in 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.
Release files for popcorn-time 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| popcorn-time-1.0.2.tar.gz | 6.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| popcorn_time-1.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.0 kB
Release files / popcorn-time-1.0.2.tar.gz
| Download URL | popcorn-time-1.0.2.tar.gz |
|---|---|
| Size | 6.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a9e9fd46c63faae66b3b29f646ce2201eff9eb925c72ffa301b14b73ee147359
|
|
BLAKE2b-256 checksum How to use checksums |
31cbd11614708c293f67d7f0086ee5f881d9b29b37e434968cbeca46e9f01342
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.8
|
Release files / popcorn_time-1.0.2-py3-none-any.whl
| Download URL | popcorn_time-1.0.2-py3-none-any.whl |
|---|---|
| Size | 7.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b811287f722929b75a3784aade14f7e940a194a1541562aecfbb1c86cd30f504
|
|
BLAKE2b-256 checksum How to use checksums |
20bab72bd4cbae16c439a18aaff57a2ea8dd3955501fa76e77a27bcb99695eba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.8
|