For Kodi and other XMLTV supporting systems.
underwent a full refactor and now it's an npm package!
Example file: https://gist.github.com/gitbugr/e26ed2d8bcd21a6684a2408997b60988
git clone https://github.com/gitbugr/sky-epg-xmltv-kodi.git
cd sky-epg-xmltv-kodi
There are two ways you can run the application and two forms of export. The program exports both to Gist and to a local directory (as specified in the env file).
First you'll want to set up your environment by editing the .env file in the root of the project.
To store your XMLTV file as a gist, use the following:
GIST_ID={YOUR_GIST_ID}
GIST_TOKEN={YOUR_GIST_TOKEN}
GIST_FILENAME={ANY_FILENAME}
REPEAT_SECONDS=600
OUTPUT_DIRECTORY=
OUTPUT_FILENAME={ANY_FILENAME}
To store your XMLTV file locally, use the following:
OUTPUT_DIRECTORY={SOME_LOCAL_DIRECTORY}
OUTPUT_FILENAME={FILENAME.xml}
REPEAT_SECONDS=600
To run this on your host machine using node, you'll first need to install the required packages.
npm install
Then run the startup script.
./run.sh
You can run the application in a docker container (requires docker installation) as follows:
then run
docker-compose up -d --build
yarn add sky-epg-scraper
# or
npm install sky-epg-scraper