Repository navigation
feat(models): read next_step on page reads and errors - #121
burak-bayir wants to merge 2 commits into
Conversation
Each page response reads next_step, which says how to get the next page, and Error reads next_step with the 5 new error codes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
State at head
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Result at head
The API fields step found the SDK matches the API for 209 operations, with 0 accepted differences. An earlier run at
|
|
State at head Earlier runs here read the coming API spec with its prose fields removed. The full spec, descriptions and examples kept, now scans clean once indented, so |
|
Result at head
The API fields step printed this.
|
|
FAIL at head Why it can't merge yet
What I checked
To merge |
|
Withdrawal of 2 of my comments here, IDs 7290319163 and 7292047169. I withdraw the claim in both that So neither comment shows that the unedited check passes at this head, and neither counts as a check result. The verdict in comment 7293330928 relied on my run for its gate line, so that line has no support now. The unedited check runs here once the API serves |
Why
Every Xquik SDK should match the API. The API is adding
next_stepto each page that has a next page, which says how to get that page, and to each error answer, which says what to do next. Catch-up issue #107 lists the change. The API serves it once its own change ships, and this PR merges after that.What changed
next_step, aStringornil, inlib,rbiandsigthat a last page leaves out. That covers the 59 page reads the API lists, throughPaginatedTweets,PaginatedUsers,PaginatedUserIds,CommunityPage,TweetAnalysisPageand the list, community note, DM, job, Space, trends and notification pages. The topic and image filtered pages,UserListPage, the search and follower coverage variants,TweetListResponseandTweetGetRepliesResponseextend one of these, so they read it too.Errorreadsnext_step, andError::Error::LegacyErrorCodeandError::Error::StructuredError::Codelist:invalid_language,:invalid_league,:invalid_game_id,:unsupported_leagueand:game_not_found.test/x_twitter_scraper/next_step_wire_test.rbreads it on each of the 25 page classes with and without it, throughx.tweets.get_quotesfrom the wire, and coversError#next_stepand the 5 codes.Scope
The Python and Go SDKs port the same change in x-twitter-scraper-python#199 and x-twitter-scraper-go#190. No open or recent PR here covered it. Refs #107, which stays open for its other changes.
Blast Radius
Additive. Each new field is optional, so every answer parses as before.
Verification
bin/check-localruns on a Linux runner at this head, with its API fields step reading the coming API spec. Its result follows in a comment.next_step, so I expect the API fields check to list the field as extra until the API serves it, andxquik-local-checksto pass on a rerun after that.🤖 Generated with Claude Code