Repository navigation
Commit 1fffc3e
committed
feat: replace brittle DOM scraper with RSS-first parser and semantic HTML fallback
- Prioritize NASA official RSS feed (https://science.nasa.gov/feed/apod-basic/)
- Semantic fallback parser for science.nasa.gov/apod/ without fragile class chains
- Delete legacy 1995-era center tag scraping logic
- Universal explanation prefix and boilerplate stripping
- Add validation guard in fetchAPOD preventing empty explanation emails
- Add comprehensive test coverage for RSS, date filtering, and fallback flows1 parent 36006d6 commit 1fffc3e
6 files changed
Lines changed: 346 additions & 238 deletions
File tree
- src/services
- test/unit/services
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | | - | |
| 158 | + | |
| 159 | + | |
0 commit comments