Fix search parsing after Upwork's markup change and warn on future breaks - #3
Merged
Merged
Conversation
…eaks
Upwork added extra tokens to its data-test attributes around 2026-09-05
("job-tile-title-link UpCLink", "job-pubilshed-date UpCBadge"). The parser
matched exact values, so every search result lost its title and featured
cards lost their posted time. Lane scoring runs on titles, so most jobs
ranked as weak fits for eleven days without any error.
Search cards are now read with single-token selectors that match both the
old and new markup, with header fallbacks for posted time and proposal
count. Fixed-price budgets are read for the first time, and "No feedback
yet" clients no longer get a 0 rating.
Each search now checks its own output and prints a warning when most cards
are missing a title, posted time, proposal count, job type, or client
details, so the next markup change shows up on the first pull.
Co-Authored-By: Claude Opus 5.5 <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.
Problem
Around 2026-09-05 Upwork added extra tokens to its
data-testattributes (job-tile-title-link UpCLink,job-pubilshed-date UpCBadge). The parser matched exact values, so every search result lost its title and featured cards lost their posted time. Lane scoring runs on titles, so most jobs ranked as weak fits, with no error. Fixed-price budgets had never been read.Fix
~=selectors that match both the old and new markup, with header fallbacks for posted time and proposal count.is-fixed-price.searchCardToRaw, which is unit-tested.Verification
npm test: 108 pass on Node 22, 24, and 26, including a real-browser test that parses synthetic cards in both the current and earlier markup (skipped where Chrome is not installed).npm run check:release: passes.🤖 Generated with Claude Code