Code Monkey home page Code Monkey logo

sportslist's Introduction

Description

This python3 script will retrieve today's MLB or NHL games and display them ordered by start time, in your local time.
This is written using my other nhl api repo

You can edit the file to set your favorite teams and rivals in order to see them highlighted in color in the output.

This script is very useful in combination with GeekTool or Conky!

Running the script

Invoke the script using:

python3 sports.py [i k t c h b]

Options:

  • i = Use Bright Colors to hightlight favorite or rival teams
  • k = Use black background
  • t = color the time bright white
  • c = use ANSI color in output (required for any other color related options)
  • n = stop using ANSI color in output
  • h = include hockey games in output
  • b = include baseball games in output

Note that the option flags are evaluated in order and affect only the output specified (h or b) that comes after them. This allows you to turn on and off output decorations while outputting the list.

Example Use.

Sent to a display file every 5 minutes and then overlayed on my desktop using GeekTool:

python3 sports.py c t b

alt text

sportslist's People

Contributors

ripred avatar

Stargazers

 avatar

Watchers

 avatar

sportslist's Issues

**Cards**

Cards can be added to your board to track the progress of issues and pull requests. You can also add note cards, like this one!

make python3 compatible

right now the code uses deprecated methods from python2.7.
convert to be python3 compatible

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.