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.json
file to the repository if there are changes. - This page fetches the data from
data.json
and displays it below.