Git Product home page Git Product logo

tvguidegen's Introduction

TV GUIDE Generator

Python script used to generate tv guide in many formats

Requirement

  • Python 2.7
  • pip ans setuptools
  • lxml

Installation

The installation steps assume that you have the following things installed:

  • Python 2.7
  • pip and setuptools Python packages. Nowadays pip requires and installs setuptools if not installed. Python 2.7.9 and later include pip by default, so you may have it already.
  • lxml. Most Linux distributions ships prepackaged versions of lxml. Otherwise refer to http://lxml.de/installation.html

You can install Tvguidegen using pip (which is the canonical way to install Python packages). To install using pip run:

pip install tvguidegen

Supported Formats

Typical usage

  • With JSON file source:

    ~# tvgg -c /data/tvguide.json -o <outputfile> --m3u-channels=/data/mym3uchannels.json

  • With mongodb collection source:

    ~# tvgg -c channels_collection -o <outputfile> --m3u-channels=http://exaple.com/list.m3u --mongodb-uri=localhost --mongodb-db=tvguide --limit=50

Command Line Arguments

-c, --channels    Filename path with Channels and TV programing content in JSON format
                  or a Mongodb collection name.

-o, --output      Output filename. If not set, Tv guide will be output to STDOUT.

--m3u-channels    Filename path or url with your channels names (Eg. From m3u playlist) in M3U format (Optionnal)
                  This useful to match your channels with tv guide source data

--mongodb-uri     Mongodb HOST URI.(Optionnal)
                  If is set,--channels and --m3u-channels are selected from Mongodb\s collections
                  Default: 127.0.0.1

--mongodb-db      Mongodb DATABASE Name. (Optionnal)
                  Default: tvguide

-l, --limit       Limit channels to generate. (Optionnal)

--m3u-only        Export only matched channels.

-v                Verbose script execution. (Optionnal)

LICENCE

The MIT License (MIT)

tvguidegen's People

Contributors

7jtv avatar

Stargazers

R. Burke Squires avatar

Watchers

 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.