Skip to content

Latest commit

 

History

History
35 lines (21 loc) · 1.22 KB

README.md

File metadata and controls

35 lines (21 loc) · 1.22 KB

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