{"id":17585090,"url":"https://github.com/deadsec-security/popcorn-time-api","last_synced_at":"2025-04-28T18:33:59.626Z","repository":{"id":45104944,"uuid":"445084452","full_name":"DEADSEC-SECURITY/popcorn-time-api","owner":"DEADSEC-SECURITY","description":"Python API for interacting with the Popcorn Time Servers","archived":false,"fork":false,"pushed_at":"2025-04-21T19:46:57.000Z","size":105,"stargazers_count":3,"open_issues_count":3,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-21T20:43:20.432Z","etag":null,"topics":["popcorn","popcorn-api","popcorn-sdk","popcorn-time","popcorn-time-api","popcorntime","popcorntime-api","popcorntimeapi"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DEADSEC-SECURITY.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":["DEADSEC-SECURITY"],"patreon":"deadsec"}},"created_at":"2022-01-06T07:44:45.000Z","updated_at":"2024-05-05T00:54:24.000Z","dependencies_parsed_at":"2023-12-25T21:33:14.838Z","dependency_job_id":"747cbf65-aa4c-4ddf-8c5e-9486630cdd07","html_url":"https://github.com/DEADSEC-SECURITY/popcorn-time-api","commit_stats":{"total_commits":56,"total_committers":1,"mean_commits":56.0,"dds":0.0,"last_synced_commit":"49bebc8b6b7069a0c142a1b8f33600f68ba89949"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DEADSEC-SECURITY%2Fpopcorn-time-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DEADSEC-SECURITY%2Fpopcorn-time-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DEADSEC-SECURITY%2Fpopcorn-time-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DEADSEC-SECURITY%2Fpopcorn-time-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DEADSEC-SECURITY","download_url":"https://codeload.github.com/DEADSEC-SECURITY/popcorn-time-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251366454,"owners_count":21578124,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["popcorn","popcorn-api","popcorn-sdk","popcorn-time","popcorn-time-api","popcorntime","popcorntime-api","popcorntimeapi"],"created_at":"2024-10-22T02:24:24.252Z","updated_at":"2025-04-28T18:33:59.607Z","avatar_url":"https://github.com/DEADSEC-SECURITY.png","language":"Python","funding_links":["https://github.com/sponsors/DEADSEC-SECURITY","https://patreon.com/deadsec"],"categories":[],"sub_categories":[],"readme":"# Popcorn Time API ![Version](https://img.shields.io/badge/Version-v1.0.0-orange?style=flat-square\u0026url=https://github.com/DEADSEC-SECURITY/popcorn-time-api/blob/main/CHANGELOG.md) ![Python_Version](https://img.shields.io/badge/Python-3.7%2B-blue?style=flat-square) ![License](https://img.shields.io/badge/License-MIT-red?style=flat-square) ![Donate](https://img.shields.io/badge/Donate-Crypto-yellow?style=flat-square)\n\n[![CodeQL](https://github.com/DEADSEC-SECURITY/popcorn-time-api/actions/workflows/codeql-analysis.yml/badge.svg?branch=main\u0026style=flat-square)](https://github.com/DEADSEC-SECURITY/popcorn-time-api/actions/workflows/codeql-analysis.yml)\n[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/DEADSEC-SECURITY/popcorn-time-api/main.svg)](https://results.pre-commit.ci/latest/github/DEADSEC-SECURITY/popcorn-time-api/main)\n\n![PyPI - Downloads](https://img.shields.io/pypi/dd/popcorn-time?label=Daily%20Downloads\u0026style=flat-square) ![PyPI - Downloads](https://img.shields.io/pypi/dw/popcorn-time?label=Weekly%20Downloads\u0026style=flat-square) ![PyPI - Downloads](https://img.shields.io/pypi/dm/popcorn-time?label=Monthly%20Downloads\u0026style=flat-square)\n\n## 📝 CONTRIBUTIONS\n\nBefore doing any contribution read \u003ca href=\"https://github.com/DEADSEC-SECURITY/popcorn-time-api/blob/main/CONTRIBUTING.md\"\u003eCONTRIBUTING\u003c/a\u003e.\n\n## 📧 CONTACT\n\nEmail: amng835@gmail.com\n\nGeneral Discord: https://discord.gg/dFD5HHa\n\nDeveloper Discord: https://discord.gg/rxNNHYN9EQ\n\n## 📥 INSTALLING\n\u003ca href=\"https://pypi.org/project/popcorn-time\"\u003eLatest PyPI stable release\u003c/a\u003e\n```bash\npip install popcorn-time\n```\n\n## ⚙ HOW TO USE\n```python\nfrom popcorntime import PopcornTime\npopAPI = PopcornTime()\n```\n\n## 🤝 PARAMETERS\n### CLASS PARAMETERS\n- **debug** : bool, optional\n  - Enable for debug mode (Default: False)\n- **min_peers** : int, optional\n  - Minimum number of peers to select torrent (Default: 0)\n- **min_seeds** : int, optional\n  - Minimum number of seeds to select torrent (Default: 0)\n### FUNCTION PARAMETERS\n- #### FUNCTION `set_logging_level`\n  - **level** : int, required\n    - Set the logging level\n    - Accepted values:\n      - 0: DEBUG\n      - 1: INFO\n      - 2: WARNING\n      - 3: ERROR\n      - 4: CRITICAL\n      - 5: NOTSET\n- #### FUNCTION `set_base_url`\n  - **url** : str, required\n    - Set the base url for the API\n- #### FUNCTION `set_base_url`\n  - **url** : str, required\n    - Set the base url for the API\n- #### FUNCTION `set_min_seeds`\n  - **value** : int, required\n    - Minimum number of seeds to select torrent\n- #### FUNCTION `get_server_status`\n  - Returns the server status in json format\n- #### FUNCTION `get_shows_stats`\n  - Returns the show stats in json format\n- #### FUNCTION `get_shows_page`\n  - **page** : (int, str), required\n  - Returns the shows page in json format\n- #### FUNCTION `get_movies_stats`\n  - Returns the movies stats in json format\n- #### FUNCTION `get_movies_page`\n  - **page** : (int, str), required\n  - Returns the movies page in json format\n- #### FUNCTION `get_show`\n  - **show_id** : (int, str), required\n    - IMDB ID of the show\n  - Returns the show data in json format\n- #### FUNCTION `get_movie`\n  - **movie_id** : (int, str), required\n    - IMDB ID of the movie\n  - Returns the movie data in json format\n- #### FUNCTION `get_random_show`\n  - Returns the show in json format\n- #### FUNCTION `get_random_movie`\n  - Returns the movie in json format\n- #### FUNCTION `get_best_torrent`\n  - **torrents** : dict, required\n    - The dictionary of torrents provided by the API (get_show or get_movie)\n  - **min_quality** : int, optional\n    - Minimum quality to select torrent (Default: '1080')\n  - **revert_to_default** : bool, optional\n    - Revert to default item if no torrents are found (Default: False)\n  - Returns the best torrent is json format\n- #### FUNCTION `remove_cam_torrents`\n  - **torrents** : dict, required\n    - The dictionary of torrents provided by the API (get_show or get_movie)\n  - Returns all the torrents without cam in json format\n\n## Legal Notice\nThis SDK is not meant to be used for illegal purposes, use it at your own risk and check your local regulations first.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeadsec-security%2Fpopcorn-time-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeadsec-security%2Fpopcorn-time-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeadsec-security%2Fpopcorn-time-api/lists"}