GithubHelp home page GithubHelp logo

whats-on-tv's Introduction

What's on TV?

Irish TV Guide with a CLI.

The program scrapes the listings from entertainment.ie using predefined values in the channel-list.json file. The keys are channel names which users can use to get listings but they also correspond to an entertainment.ie URL as do the values. An example URL is as follows http://entertainment.ie/TV_Listing/13-February-2017/82/RTE-2.htm where RTE-2 would be an example key and 82 would be the corresponding value in the JSON file.

Installation

npm i -g whats-on-tv

Setup tab autocompletion

To setup tab autocompletion you simply run the following command.

whatson --setup

If you using Bash, it will create a file at ~/.whatson/completion.sh and append a loader code to ~/.bash_profile.

If you use Zsh of Fish, it just appends a loader code to ~/.zshrc or ~/.config/fish/config.fish respectively.

Usage

If you have tab autocompletion setup, you can display a list of channels using the following command.

whatson <TAB>

Otherwise, you can check the channel-list.json file.

Get today's full listings

whatson RTE-2

Get listings for now or next

whatson RTE-2 now
whatson RTE-2 next

Get listings for tomorrow

whatson RTE-2 tomorrow

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.