go test ./... passes (including new mock-based tests)
go vet ./... passes
## Summary
- Add `GetWeather()` and `GetStockQuote()` methods to the DuckDuckGo site extractor
- Add `GetStockChart()` for screenshotting stock chart widgets with period selection
- Define `WeatherData`, `DayForecast`, `StockData`, and `StockPeriod` types
- Full mock-based test coverage for both weather and stock extraction
Closes #25
Closes #26
**Parent:** #31 (PR 13 of 17)
## Test plan
- [x] `go build ./...` passes
- [x] `go test ./...` passes (including new mock-based tests)
- [x] `go vet ./...` passes
Add weather.go with GetWeather() for extracting structured weather data
(location, temp, conditions, forecast) and stock.go with GetStockQuote()
and GetStockChart() for stock data extraction and chart screenshots.
Both include mock-based tests. CSS selectors may need tuning against
the live site since DuckDuckGo's React-rendered widgets use dynamic
class names.
Closes#25, #26
Co-Authored-By: Claude Opus 4.6 <[email protected]>
Claude
merged commit d0b3131d98 into main2026-02-15 16:43:07 +00:00
Claude
deleted branch feature/duckduckgo-widgets2026-02-15 16:43:08 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
GetWeather()andGetStockQuote()methods to the DuckDuckGo site extractorGetStockChart()for screenshotting stock chart widgets with period selectionWeatherData,DayForecast,StockData, andStockPeriodtypesCloses #25
Closes #26
Parent: #31 (PR 13 of 17)
Test plan
go build ./...passesgo test ./...passes (including new mock-based tests)go vet ./...passes