iptvpy is a modular Python library for IPTV portal interaction.
- Base
IPTV
class for IPTV portal - Easy to extend for other IPTV systems
- Uses
cloudscraper
to bypass Cloudflare - Optional logging/export of responses
- Python 3.x
cloudscraper
pip install cloudscraper --upgrade
pip install iptvpy
Core class with:
gen_jsondata()
— safely extracts JSON, optionally from.js
keygen_logs()
— logs responses toself.r_list
and to files if requiredgen_input()
— parses URL/host details and holds logic for client-side variablesgen_scraper()
— initializes a Cloudflare-capable sessiongen_request()
— performsGET
orPOST
requests
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.py
and 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!