git clone https://github.com/mizlan/usub.git
cd usub
python -m venv venv
source venv/bin/activate # for fish: source venv/bin/activate.fish
pip install -r requirements.txt
pip install -e .
examples:
usub 739 -f sol.cpp # using the cpid
# or
usub 'http://www.usaco.org/index.php?page=viewproblem2&cpid=739' -f cownomics.cpp -l cpp11
examples:
usub 739 # using the cpid
# or
usub 'http://www.usaco.org/index.php?page=viewproblem2&cpid=739'
From usub -h
usage: usub [-h] [--fresh] [--verbose] [-f FILE] [-l LANG] problem
USACO Submission Client
positional arguments:
problem USACO problem link or cpid
optional arguments:
-h, --help show this help message and exit
--fresh invalidate cookies and force fresh login
--verbose turn on verbose mode
-f FILE, --file FILE submission file
-l LANG, --lang LANG submission language
note: --verbose
doesn't work at the moment.
please file issues, i'm open to PRs