https://github.com/simonw/git-scraper-template
Template repository for setting up a new git scraper
https://github.com/simonw/git-scraper-template
Last synced: 9 months ago
JSON representation
Template repository for setting up a new git scraper
- Host: GitHub
- URL: https://github.com/simonw/git-scraper-template
- Owner: simonw
- Created: 2025-02-26T03:08:20.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-02-26T03:50:18.000Z (10 months ago)
- Last Synced: 2025-02-26T04:19:20.598Z (10 months ago)
- Size: 6.84 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome - simonw/git-scraper-template - Template repository for setting up a new git scraper (Shell)
README
# git-scraper-template
Template repository for setting up a new [Git scraper](https://simonwillison.net/2020/Oct/9/git-scraping/) using GitHub Actions.
## How to use this
Visit https://github.com/simonw/git-scraper-template/generate
Pick a name for your new repository, then paste **the URL** of the page you would like to take scrape into the **description field** (including the `http://` or `https://`). JSON works best, but any URL will be fetched and saved.
Then click **Create repository from template**.
Your new repository will be created, and a script will run which will do the following:
- Add a `scrape.sh` script to your repository which uses `curl` via the `./download.sh` script to fetch and save the URL you requested
- Run that `./scrape.sh` command and commit the result to the repository
- Configure a schedule to run this script once every 24 hours
You can edit `scrape.sh` to customize what is scraped, and you can edit `.github/workflows/scrape.yml` to change how often the scraping happens.
If you want to use Python in your scraper you can uncomment the relevant block in `scrape.yml` and add a `requirements.txt` file to your repository containing any dependencies you need.