Skip to content

fix: TwitterExtractor hardcoded English aria-label breaks reply extraction for non-English UIs#290

Open
mvanhorn wants to merge 1 commit into
kepano:mainfrom
mvanhorn:fix/272-twitterextractor-hardcoded-english-aria-label-brea
Open

fix: TwitterExtractor hardcoded English aria-label breaks reply extraction for non-English UIs#290
mvanhorn wants to merge 1 commit into
kepano:mainfrom
mvanhorn:fix/272-twitterextractor-hardcoded-english-aria-label-brea

Conversation

@mvanhorn
Copy link
Copy Markdown

Summary

TwitterExtractor selected the reply count node by matching aria-label*="Reply", which only matches the English UI. On non-English X / Twitter UIs the aria-label is localized, so reply extraction silently returned 0.

Why this matters

Reporter pinpointed the exact aria-label match. The fix swaps the localized aria-label lookup for a data-testid lookup that X uses consistently across locales.

Changes

  • src/extractors/twitter.ts - select reply count via [data-testid="reply"] instead of [aria-label*="Reply"].

Fixes #272

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Twitter extractor: hardcoded English aria-label breaks reply extraction for non-English interfaces

1 participant