Virtual rating system for codeforces using codeforces API.
- Problems suggestion.
- Virtual rating for solving problem out-of-contest.
- Make rating graph like in Codeforces
- Challenge timewatch (similar to TLE bot gitgud).
It is ideal to use virtualenv.
$ git clone https://github.com/polarity-cf/arugo.git
$ pip install -r requirements.txt
Create .env
file in the arugo
folder.
Change the settings as follow, with your mongodb link:
SECRET_KEY = '<Generate your key @ https://djecrety.ir/>'
DEBUG = True
DB_URL = 'mongodb+srv://<username>:<password>@<atlas cluster>/<myFirstDatabase>?retryWrites=true&w=majority'
$ python manage.py migrate
Run the shell
$ python manage.py shell
Run the script
$ from base.util import fetch_problemset
$ fetch_problemset()