iptvpy is a modular Python library for IPTV portal interaction.
- Base
IPTVclass for IPTV portal - Easy to extend for other IPTV systems
- Uses
cloudscraperto bypass Cloudflare - Optional logging/export of responses
- Python 3.x
cloudscraper
pip install cloudscraper --upgradepip install iptvpyCore class with:
gen_jsondata()— safely extracts JSON, optionally from.jskeygen_logs()— logs responses toself.r_listand to files if requiredgen_input()— parses URL/host details and holds logic for client-side variablesgen_scraper()— initializes a Cloudflare-capable sessiongen_request()— performsGETorPOSTrequests
Subclasses like MacPortal, XtreamPortal can build on this to implement specific authentication flows and APIs.
- Has child class
MacPortal(Stalker/Ministra like portals); checksrc/MacPortal.pyand study code for usage - Planned to add child class
XtreamPortal(Xtream-Codes like portals) - Planned to write perfect README.md
Apache License 2.0
This library is open-source and free to use under the Apache 2.0 License.
Contributions, suggestions, and feature requests are welcome! Feel free to submit an issue or PR.
Developed by भाग्य ज्योति (Bhagya Jyoti)
Happy iptv portal-ing!