fix: twitter search adapter broken by X platform changes#30
Merged
nashsu merged 1 commit intonashsu:mainfrom Apr 8, 2026
Merged
fix: twitter search adapter broken by X platform changes#30nashsu merged 1 commit intonashsu:mainfrom
nashsu merged 1 commit intonashsu:mainfrom
Conversation
The intercept strategy with history.pushState no longer triggers X's client-side router, resulting in empty search results every time. Switch to cookie strategy with DOM scraping, matching the approach used by the working trending and timeline adapters. Also adds retweets and replies columns. Fixes nashsu/autocli-skill#1
|
looking forward to the new release |
Author
|
Glad to have helped! hopefully it works for all. |
Owner
|
released! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
interceptstrategy withhistory.pushStateno longer triggers X's client-side router, causing search to return empty results every timecookiestrategy with DOM scraping, consistent with the workingtrendingandtimelineadaptersretweetsandrepliescolumns to search outputWhat changed
strategy: intercept→strategy: cookiepushState/popstatenavigation hack and XHR interception pipelinearticle[data-testid="tweet"]elementslike,retweet,replytestIds)Tested
Relates to nashsu/autocli-skill#1