main.py uses the CF Contest Stadings API to get the results and then finds the ranks of those handles mentioned in the data.json and then tabulates and ranks the result in a table format
addUser.py aids in appending (for the time being, more features will be updated later) new user to the JSON.
-
Bluesoup4 ( https://pypi.org/project/beautifulsoup4/)
pip3 install beautifulsoup4
-
Tabulate ( https://pypi.org/project/tabulate/ )
pip3 install tabulate
$ python3 main.py
It will ask for the contest id. Contest ID for CodeForces contest is the number which you can find in the URL.
If the contest URL is https://codeforces.com/contest/1326
Then the number 1326 is the contest ID. After you provide the contest ID it will take some time fecthing the data, and tabulating the results. The final ouput will be exported to the results.txt
$ python3 addUser.py
After providing the details the data.json file will be updated and the new entry will be added.
- CSV to JSON ( https://www.convertcsv.com/csv-to-json.htm )
- JSON editor ( https://jsoneditoronline.org/#left=local.zejeve )