Kanna-Neko / dew

A assistant which can help you test your program you will submit on codeforces And which can create a contest pick problem from codeforces..
MIT License
42 stars 3 forks source link

[Suggestion] Use global singleton client to request codeforces API #3

Closed HydraBor closed 2 years ago

HydraBor commented 2 years ago

From https://codeforces.com/apiHelp we know

API may be requested at most 1 time per two seconds. If you send more requests, you will receive a response with "FAILED" status and "Call limit exceeded" comment.

A debounce should be add to prevent too many request, or catch FAILED exception.

Kanna-Neko commented 2 years ago

Don't worry, I will tackle it.