Skip to content

Conversation

@kyuridenamida
Copy link
Owner

Why is this change needed?

AtCoderでCAPTCHA(reCAPTCHA/Turnstile)が表示される状況で自動提出が失敗するため、適切なエラーハンドリングが必要だから

What did you implement?

  • CaptchaError例外クラスを追加
  • 提出ページでCloudflare CAPTCHAを検出する機能を追加
  • CAPTCHA検出時に適切なエラーメッセージを表示する処理を追加
  • CAPTCHA検出のテストケースを追加

What behavior do you expect?

CAPTCHA付きの提出ページが返された状態でatcoder-tools submitコマンドを実行した際に、「CAPTCHA detected. Cannot submit automatically. Please submit manually through the web interface.」というエラーメッセージがコンソールに表示される。

@kyuridenamida kyuridenamida added this to the 2.16.0 milestone Nov 9, 2025
@kyuridenamida kyuridenamida merged commit ed42453 into stable Nov 14, 2025
3 checks passed
@kyuridenamida kyuridenamida deleted the give-up-submission-with-captcha branch November 14, 2025 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants