Scrape data #140
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Scrape data | |
on: | |
schedule: | |
- cron: "0 6 * * *" | |
workflow_dispatch: | |
jobs: | |
scrape: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Scrape pool data | |
run: | | |
cd data | |
pip install -r requirements.txt | |
scrapy crawl chi_parks_pool_spider -O ../src/data/pools.json | |
- uses: EndBug/add-and-commit@v9 | |
with: | |
add: src/data/pools.json | |
message: "Update pools data" |