Skip to content

A utility for generating Rambo-style Box Score for NBA games, with ANSI color highlighting optimized for Ptt BBS.

Notifications You must be signed in to change notification settings

hungys/RamboBoxGen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

RamboBoxGen

RamboBoxGen is a utility for generating Rambo-style Box Score for NBA games, with ANSI color highlighting optimized for Ptt BBS.

Usage

  1. Get game ID from NBA Advanced Stats. You can find it from the URL of the box score page (e.g. http://stats.nba.com/game/0021601028/).

  2. Run python3 box.py [-h] [-s season] [-c {esc,ctrlu}] game_id. For example,

    $ python3 box.py -s 2016 0021601028
    

    The default value of argument season is set based on today's date. For 2016-17 season, please use 2016. July 1st is regarded as the start of the new season.

    Optional argument -c=ctrlu will replace ANSI control code ESC with CTRL-U. For Nally and Welly on macOS, we recommend you to set this option.

    For convenience, you can also pipe the result to clipboard directly,

    $ python3 box.py 0021601028 -c=ctrlu | pbcopy   # for Welly on macOS
    $ python3 box.py 0021601028 | clip.exe   # for PCMan on Windows
    

    Then, paste the result to the BBS.

Demo

About

A utility for generating Rambo-style Box Score for NBA games, with ANSI color highlighting optimized for Ptt BBS.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages