项目作者: okeefj22

项目描述 :
TV Guide with a CLI.
高级语言: JavaScript
项目地址: git://github.com/okeefj22/whats-on-tv.git
创建时间: 2017-01-05T23:59:53Z
项目社区:https://github.com/okeefj22/whats-on-tv

开源协议:MIT License

下载


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

  1. npm i -g whats-on-tv

Setup tab autocompletion

To setup tab autocompletion you simply run the following command.

  1. 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.

  1. whatson <TAB>

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

Get today’s full listings

  1. whatson RTE-2

Get listings for now or next

  1. whatson RTE-2 now
  2. whatson RTE-2 next

Get listings for tomorrow

  1. whatson RTE-2 tomorrow