XJudge Scrapping Service is a Java-based application that scrapes problem data from Codeforces. It uses Spring Boot for the backend and Maven for dependency management.
Endpoint: localhost:7071/problem/{source}-{code}
Method: GET
Description: This endpoint starts the scrapping process for a specific problem from a contest on the online judge.
Path Parameters:
source
: The problem source (online judge) ex: CodeForces, AtCoder, etc ...code
: The problem code in online judge.
Response: Returns a JSON object representing the Problem
data. The JSON object has the following structure:
{
"id": "Long",
"code": "String",
"onlineJudge": "String",
"title": "String",
"problemLink": "String",
"contestLink": "String",
"sections": [
{
"title": "String",
"value": {
"format": "String",
"content": "HTML as String"
}
}
],
"properties": [
{
"name": "String",
"value": "String"
}
]
}
To set up the project locally, follow these steps:
- Clone the repository to your local machine.
- Navigate to the project directory.
- Run
mvn clean install
to build the project and install dependencies. - Run the application using
mvn spring-boot:run
.
- Java
- JavaScript
- Spring Boot
- Maven
Contributions are welcome. Please fork the repository and create a pull request with your changes.
This project is licensed under the MIT License. See the LICENSE
file for more details.