xalanq / cf-tool

:bar_chart: Codeforces CLI (Submit, Parse, Test, etc.). Support Contests, Gym, Groups, acmsguru, Windows, macOS, Linux, 7 MB
MIT License
1.3k stars 224 forks source link

'Cannot find csrf' after Codeforces update #131

Open purplesyringa opened 3 years ago

purplesyringa commented 3 years ago

https://github.com/xalanq/cf-tool/blob/4aff8682ad0d1e14155c9744a3f27780576bb11e/client/login.go#L48-L51

There's just a single data-csrf='...' field on Codeforces now. What's the point in using the second match, not the first one?

infalmo commented 3 years ago

Try https://github.com/cp-tools/cpt It's still beta, but its much cooler.

sainad2222 commented 3 years ago

The development of the tool looks inactive.

UPD: I fixed the issue and created fork. Thanks to @imachug Here's the link

askeySnip commented 2 years ago

so, is there any solution? I still get ‘Cannot find csrf' error using sainad2222's repo.

SHAHNUR00 commented 2 years ago

https://github.com/woshiluo/cf-tool/releases/tag/v1.0.1 GO to that link and download the required file. It woks without any issue.