Giter Club home page Giter Club logo

zattoo-channel-url-finder's Introduction

zattoo-channel-url-finder

zattoo-channel-url-finder is a tool to extract the URL of a TV channel from the Zattoo, only by giving a name that resembles the name of the TV channel. It uses the python library fuzzywuzzy to achieve the fuzzy string matching.

Installation

To install zattoo-channel-url-finder you can download the latest release and run

pip install zattoo-channel-url-finder-x.y.z.tar.gz

Usage

Let's say we want to get the URL of the TV channel ARTE. We use zattoo-channel-url-finder with

zattoo-channel-url-finder arte

and get

https://zattoo.com/watch/DE_arte

as the result.

Generation of the channel list

I have used the following procedure to construct the list of the channel key words CHANNEL_LIST in channel_finder.py:

First login in the browser and save the JSON containing the channel information as channels.json. Then run a beautifier program over this file und use the following:

cat channels.json | grep display | cut -d: -f2 | sed s/,//g > 1.txt
cat channels.json | grep cid | cut -d: -f2 | sed s/,//g > 2.txt
cat channels.json | grep "title" | grep '^[[:space:]]\{6\}"' | cut -d: -f2 | sed s/,//g | sed s/HD//g | sed s/" "\"/\"/g > 3.txt
paste 1.txt 2.txt 3.txt -d, | sed 's/^/[/' | sed 's/$/],/'

The result of this procedure can be used to generate the list CHANNEL_LIST. Feel free to fork this project and adopt it to your own purposes.

zattoo-channel-url-finder's People

Contributors

goggle avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.