Commit 4553757
committed
fix: switch SearchTimeline from GET to POST
X started rejecting GET on SearchTimeline ~2026-05-10. Verified live
against 4 sessions (3 quarantined per the in-house streak counter,
1 fresh) × 3 queries each = 12 trials:
GET (current twikit): 12/12 → 404 with content-length: 0
POST (this PR): 12/12 → 200 with 130-180 KB of search results
The POST body is identical to what GET sent as URL-encoded params,
plus ``queryId`` (added automatically by ``gql_post``) and
``fieldToggles`` moved from ``extra_params`` to ``extra_data``.
Mirrors d60#412.
The "shadow flag" pattern we initially observed (~75% of accounts
404'ing) was an artifact of GET enforcement, not per-account
behaviour — POST works for every session.1 parent fed8979 commit 4553757
1 file changed
Lines changed: 7 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
202 | 204 | | |
203 | 205 | | |
204 | 206 | | |
205 | | - | |
| 207 | + | |
206 | 208 | | |
207 | 209 | | |
208 | 210 | | |
| |||
0 commit comments