fetch online judge statistics for various OJs
python3
module requests
(https://github.com/kennethreitz/requests/)
module flask
###On Linux (Ubuntu 14.04)
- Install pip for python3:
sudo apt-get install python3-pip
- Install required modules:
sudo pip3 install flask
sudo pip3 install requests
- Run
web.py
:python3 web.py
###On Linux (CentOS 7)
- Install python3:
sudo yum install python3
- Install pip for python3:
sudo yum install python3-pip
- Install required modules:
sudo python3-pip install flask
sudo python3-pip install requests
- Run
web.py
:python3 web.py
###On Windows
- Make sure you've installed python3 and pip
- Install required modules:
pip install requests
pip install flask
- Run
web.py
:py web.py
###Comparer
This feature is the same as uHunt Statistics Comparer for UVa. But this supports various online judges.
For detailed description see http://uhunt.felix-halim.net/id/303020 "Statistics Comparer" paragraph.
Same as uHunt Comparer, you can use these operators: union +
, subtraction -
, intersection &
, and brackets (
)
to force operator precedence.
To indicate a user of a OJ, you can use [oj id]:[user name/id]
. See [Supported OJ] for detail.
For example: tioj:domen111-tioj:visitorIKC
###Board
Track users' statistics of specific online judge problems.
Currently it doesn't provide a web interface. You can use its API with Javascript, PHP, etc.
You can send the following data via http POST/GET to /board/api
argument | description |
users |
JSON string
{
user1_name: {oj1: oj1_uid, ...},
user2_name: {oj1: oj1_uid, ...},
...
}
|
probs |
JSON string
[
[prob1_judge, prob1_name],
[prob2_judge, prob2_name],
...
]
|
timeout | A interger. The numbers of minutes we should keep its result in cache. |
force_fetch |
Non-essential A boolean. If it is not specified, it's false by default. |
OJ id | OJ full name | Link | User name/id |
---|---|---|---|
tioj | TIOJ Infor Online Judge | http://tioj.ck.tp.edu.tw/ | Your login username (not nickname) |
toj | TNFSH Online Judge | http://toj.tfcis.org/oj/ | User ID (a number, goto Challenges and find "Your ID") |
HOJ | HSNU Online Judge | http://hoj.twbbs.org/judge/ | User ID (a number, see the url of your information page) |
cf | Codeforces | https://codeforces.com/ | Your codeforces handle (username) |