A crawler made by colly to get all user submissions on every judge.
Name | Version |
---|---|
go | 1.17 |
- Download required packages
go mod download
- Start run crawler
cd src/
go run main.go
This project use gofmt
for formatting
make format
This Project support following judge, and will read homework
, user
file to build request.
- Homework file in
src/data/problems/
, and make sure that the file name format complies withweek*.json
.
{
"problems": [
{
"judge_name": "uva",
"problem_id": "1595"
},
{
"judge_name": "toj",
"problem_id": "87"
},
{
"judge_name": "tioj",
"problem_id": "1719"
}
]
}
- User file in
src/data/user.json
.
{
"arashi87": {
"toj": "1931",
"uva": "1002251",
"tioj": "sa072686"
}
}