Skip to main content

A modular Python library for IPTV portal interaction.

Project description

iptvpy

iptvpy is a modular Python library for IPTV portal interaction.


Features

  • Base IPTV class for IPTV portal
  • Easy to extend for other IPTV systems
  • Uses cloudscraper to bypass Cloudflare
  • Optional logging/export of responses

Requirements

  • Python 3.x
  • cloudscraper

Install dependencies manually

pip install cloudscraper --upgrade

Installation

pip install iptvpy

Usage

IPTV

Core class with:

  • gen_jsondata() — safely extracts JSON, optionally from .js key
  • gen_logs() — logs responses to self.r_list and to files if required
  • gen_input() — parses URL/host details and holds logic for client-side variables
  • gen_scraper() — initializes a Cloudflare-capable session
  • gen_request() — performs GET or POST requests

Subclasses like MacPortal, XtreamPortal can build on this to implement specific authentication flows and APIs.


Notes

  • Has child class MacPortal (Stalker/Ministra like portals); check src/MacPortal.py and study code for usage
  • Planned to add child class XtreamPortal (Xtream-Codes like portals)
  • Planned to write perfect README.md

License

Apache License 2.0

This library is open-source and free to use under the Apache 2.0 License.


Contributing

Contributions, suggestions, and feature requests are welcome! Feel free to submit an issue or PR.


Author

Developed by भाग्य ज्योति (Bhagya Jyoti)


Happy iptv portal-ing!

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

iptvpy-2.0.0.tar.gz (14.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

iptvpy-2.0.0-py3-none-any.whl (14.4 kB view details)

Uploaded Python 3

File details

Details for the file iptvpy-2.0.0.tar.gz.

File metadata

  • Download URL: iptvpy-2.0.0.tar.gz
  • Upload date:
  • Size: 14.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for iptvpy-2.0.0.tar.gz
Algorithm Hash digest
SHA256 1a19031ce7202986623efe0da461a40468c1241f7076f04a50f4481846eee5bf
MD5 36d29143d03854992abf1ae07d9f9806
BLAKE2b-256 e9e85747ceb13ec59a26356f96b0e0b16b878ccb0237309fad5b40202547cd4f

See more details on using hashes here.

Provenance

The following attestation bundles were made for iptvpy-2.0.0.tar.gz:

Publisher: pypi.yml on BhagyaJyoti22006/iptvpy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file iptvpy-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: iptvpy-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 14.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for iptvpy-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ad4e61147b7f69016d8002055a529c75ab5f639073bbfb46cb31fa76cb27cdb8
MD5 a780d4dddadeaf3e00362910d130775b
BLAKE2b-256 a461e10251e69d6745c6a92aff82b142a60c84a7f02dbc0dbd4b098a91ebdae4

See more details on using hashes here.

Provenance

The following attestation bundles were made for iptvpy-2.0.0-py3-none-any.whl:

Publisher: pypi.yml on BhagyaJyoti22006/iptvpy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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