Skip to content
This repository was archived by the owner on Aug 11, 2019. It is now read-only.

Latest commit

 

History

History
36 lines (30 loc) · 1.04 KB

README.md

File metadata and controls

36 lines (30 loc) · 1.04 KB
Title Description Author Tags Created Modified
Rio2016MedalTable
show Rio2016 Olympic Medal Table in terminal
KrazyCavin
CLI, python, script
07 Aug 2016
07 Aug 2016

Rio2016MedalTable

Requirement

  • python3
  • tabulate
  • beautifulsoup4

Install python package

  • pip3 install -r requirements.txt

How to use

usage: Rio2016MedalTable.py [-h] [-s {Gold,Silver,Bronze,Total}] [-d]
optional arguments:
  -h, --help            show this help message and exit
  -s {Gold,Silver,Bronze,Total}, --sort {Gold,Silver,Bronze,Total}
                        sort results by number of Gold, Silver, Bronze or
                        Total medals. Default: sort by Total
  -d, --debug           active debug log

Example

  • Show medal table sorted by Total medals: python3 ./Rio2016MedalTable.py
  • Show medal table sorted by Gold medals: python3 ./Rio2016MedalTable.py -s Gold

Alt text