fix: Update Chrome Web Store crawler selector for user count#9
Merged
aklinker1 merged 3 commits intowxt-dev:mainfrom Apr 18, 2026
Merged
fix: Update Chrome Web Store crawler selector for user count#9aklinker1 merged 3 commits intowxt-dev:mainfrom
aklinker1 merged 3 commits intowxt-dev:mainfrom
Conversation
Google changed the CWS detail page DOM layout — a new "Add to Chrome" div was appended as the last child of the header section, causing the `div:last-child` selector to miss the user count element. The crawler threw on `weeklyActiveUsers` extraction, which nullified the entire extension entry in the GraphQL response. Replace the positional `div:last-child` selector with a text-content search for the div containing " users", making it resilient to future DOM reordering. Add a test fixture from the current (Apr 2026) CWS HTML. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Member
|
Run |
aklinker1
approved these changes
Apr 17, 2026
CI requires snapshots to exist — Bun won't create them in CI mode. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Contributor
|
|
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.
Google changed the CWS detail page DOM layout — a new "Add to Chrome" div was appended as the last child of the header section, causing the
div:last-childselector to miss the user count element. The crawler threw onweeklyActiveUsersextraction, which nullified the entire extension entry in the GraphQL response.Replace the positional
div:last-childselector with a text-content search for the div containing " users", making it resilient to future DOM reordering. Add a test fixture from the current (Apr 2026) CWS HTML.