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.1.tar.gz (15.0 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.1-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: iptvpy-2.0.1.tar.gz
  • Upload date:
  • Size: 15.0 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.1.tar.gz
Algorithm Hash digest
SHA256 a4d1c3bb4316422faa145e6a72875cf4704e03545173f239c12c5a879562939a
MD5 accbccade39dac07a26db4b3b9bdeacf
BLAKE2b-256 64157f9e701d11135b1a3d6b70b31d444d4c90eebfa323f4cc1e384c775829b4

See more details on using hashes here.

Provenance

The following attestation bundles were made for iptvpy-2.0.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: iptvpy-2.0.1-py3-none-any.whl
  • Upload date:
  • Size: 14.6 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9215a0994de87b822bf7d575af256c97df7f5eb1058fdb5c2f0fbc17e9017f16
MD5 4f5f4f626300fa11cae9620d8525d88c
BLAKE2b-256 6df9aaf960c14e05b5fb93290d9ba2230277d3d1bf7d24a3f501c9696cac3baf

See more details on using hashes here.

Provenance

The following attestation bundles were made for iptvpy-2.0.1-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