fix: update weather selectors to match DDG's actual DOM #54
Reference in New Issue
Block a user
Delete Branch "fix/weather-selector-dom-mismatch"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
wbUB0U7KMDyukXtzMd8Y) that change on every build, so all the BEM-style selectors (.module__current-temp,.forecast-day__name, etc.) return empty resultsarticle:has(img[src*='weatherkit'])div:first-child,p:first-of-type,div:nth-child(2))img[alt]attributesspan > spanstructureCurrentTempnow derived from first hourly entry (DDG no longer shows a standalone current temperature element)HighTemp/LowTempnow derived from first daily forecast entryFixes #53
Test plan
go test ./...)GetWeather()against live site