Run DoveScraper #9
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: Run DoveScraper | |
on: | |
schedule: | |
- cron: '0 0 */7 * *' # Runs every 7 days at midnight UTC | |
workflow_dispatch: # Allows manual triggering from the GitHub UI | |
jobs: | |
run-scraper: | |
runs-on: ubuntu-latest | |
env: | |
WEB_SCRAPER_API_TOKEN: ${{ secrets.WEB_SCRAPER_API_TOKEN }} | |
AIRTABLE_API_KEY: ${{ secrets.AIRTABLE_API_KEY }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install requests # Add any other dependencies your script requires | |
- name: Run DoveScraper.py | |
run: python DoveScraper.py |