Skip to main content

Interact with the Popcorn Time API with python

Project description

Popcorn Time API Version Python_Version License Donate CodeQL

📝 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

Latest PyPI stable release

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
  • FUNCTION set_base_url

    • url : str, required
      • Set the base url for the API
  • FUNCTION set_base_url

    • url : str, required
      • Set the base url for the API
  • FUNCTION set_min_seeds

    • value : int, required
      • Minimum number of seeds to select torrent
  • FUNCTION set_min_peers

    • value : int, required
      • Minimum number of peers to select torrent
  • FUNCTION get_shows_page

    • page : (int, str), required
    • Returns the shows page 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
  • FUNCTION get_movie

    • movie_id : (int, str), required
      • IMDB ID of the movie
    • Returns the movie data in json format
  • FUNCTION get_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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

popcorn-time-0.0.2.tar.gz (4.7 kB view hashes)

Uploaded Source

Built Distribution

popcorn_time-0.0.2-py3-none-any.whl (5.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page