Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 1.27 KB

File metadata and controls

32 lines (20 loc) · 1.27 KB

Codeforces-best-performer-scraper

Description

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.

Dependencies

Instructions

$ 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

To add another user ID

$ python3 addUser.py After providing the details the data.json file will be updated and the new entry will be added.

Tools used