Rewrite session scripts for new login flow

Fixes #1421
This commit is contained in:
Zed 2026-08-17 05:28:53 +07:00
commit 607765c463
4 changed files with 375 additions and 235 deletions

View file

@ -1,5 +1,11 @@
#!/usr/bin/env python3
"""
DEPRECATED: X now requires a castle token generated by client-side JavaScript
during the login flow, which blocks pure-API authentication. Use
create_session_browser.py instead.
This script is kept for reference but will fail with current X API defenses.
Requirements:
pip install curl_cffi pyotp