ScrapeLite Guardian is a lightweight Node.js scraper for collecting article titles and links from The Guardian's international news page.
- Fetches Guardian International HTML with
axios. - Parses article data with
cheerio. - Starts a small Express server on port
8000. - Uses
nodemonfor local development reloads.
- Node.js
20.18.1or newer - npm
git clone https://github.com/FahimFBA/scrapelite-guardian.git
cd scrapelite-guardian
npm installnpm startThe scraper runs when the app starts and prints the collected articles to the terminal.
Releases are driven by CHANGELOG.md.
- Update
package.jsonwith the new version. - Add a new topmost version section to
CHANGELOG.md. - Push the changes to
main.
The GitHub Action reads the newest changelog version, verifies it matches package.json, creates the matching vX.Y.Z tag, and publishes a GitHub release using that changelog section as the release notes.
.
|-- .github/workflows/release.yml
|-- scripts/extract-latest-changelog.js
|-- CHANGELOG.md
|-- index.js
|-- package.json
`-- package-lock.json
The Guardian changes its frontend markup over time. If the scraper starts returning no articles, update the selector in index.js.