How It Works
- A Node.js script (
scrape.js) uses Puppeteer to open quotes.toscrape.com. - The script scrapes the first 10 quotes.
- The data is saved to a file:
public/data.json. - A GitHub Actions workflow (
.github/workflows/scrape.yml) runs this script on a schedule. - The workflow will push the new
data.jsonfile to the repository if there are changes. - This page fetches the data from
data.jsonand displays it below.