Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

[WIP] codechef judge plugin for termicoder using html parsing and web api

License

Notifications You must be signed in to change notification settings

termicoder/termicoder-CodeChef-web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

termicoder-codechef-web

THIS IS A WORK IN PROGRESS AND NOT READY FOR USE YET

The main working ideas can be found in termicoder/previous_alpha which provided the functionalities for module based implementation of termicoder

codechef plugin for termicoder using web api

NOTE:

The codechef plugin implementation supplied with main termicoder repo uses endpoint https://api.codechef.com/ for accessing resources.

This judge plugin on contrary uses https://www.codechef.com/api/ based urls as well as direct access to html and forms using beautiful soup to achive the required termicoder functionalies.

The purpose of creating this is that during a prior contest(LTIME64) , codechef disabled access to its oauth based api https://api.codechef.com which rendered termicoder useless during the contest. Codechef as of now cannot disable access to https://www.codechef.com/api endpoints as they are directly being used in their web interface www.codechef.com to get ajax requests and load problems and contests after regular intervals.

This is provided externally as we believe that overtime the codechef web interface will also shift to https://api.codechef.com and the endpoints should be more stable. On the other case If codechef shifts to some other paradigm and completely does away with frontend access to the api, we can still emulate complete html based browser functionality to keep this working.

In this instead of saving Oauth tokens, we save coookies after a user logs in. This currently does not support saving of password.

Another reason for using this is that the web api supports submissson but https://api.codechef.com doesn't (yet).

About

[WIP] codechef judge plugin for termicoder using html parsing and web api

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages