https://github.com/chkuendig/tv7-epg-parser
📺 📖 Extract XMLTV EPG from the init7 IPTV backend
https://github.com/chkuendig/tv7-epg-parser
init7 tv7 xmltv
Last synced: 4 months ago
JSON representation
📺 📖 Extract XMLTV EPG from the init7 IPTV backend
- Host: GitHub
- URL: https://github.com/chkuendig/tv7-epg-parser
- Owner: chkuendig
- Created: 2020-02-05T23:28:23.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-06-15T09:51:50.000Z (over 1 year ago)
- Last Synced: 2025-06-12T06:57:21.647Z (4 months ago)
- Topics: init7, tv7, xmltv
- Language: Python
- Homepage: https://christian.kuendig.info/posts/2020-02-tv7-epg/
- Size: 113 KB
- Stars: 4
- Watchers: 4
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#  EPG Parser
This is a python script to download the official EPG data from the tv7 backend and export it as XMLTV. The backend API was reverse-engineered from the official Android TV app - for more information check out the the writeup on personal website: [February 6, 2020: Extracting EPG data from the TV7 IPTV service](https://christian.kuendig.info/posts/2020-02-tv7-epg/).
It's designed to include all data available (including picons and channel numbers), and includes caching and rate-limiting to avoid excessive polling the backend no matter how often it is run, making it easy to setup as a scheduled job. It can directly pipe data into the xmltv grabber of Tvheadend via Unix domain sockets.
# Usage
- For a dockerized deployment (recommended), see [docker-compose.yml](docker-compose.yml) for a sample.- To run it directly, install the python requirements (`pip3 install -r requirements.txt`) and then `python3 tv7-epg-parser.py`.
- The script is quiet and the only output you get is the xmltv, this should make it easy to pipe the data for further processing as part of a cron job.
- The script supports only one parameter: `-d`/`--debug` enables debug output.