Skip to content

scraper

scraper #82

name: scraper
on:
push:
schedule:
- cron: '0 9 * * *' # Run the job daily at 09:00 AM UTC
jobs:
scrape:
runs-on: ubuntu-latest
steps:
- name: Checking out repository
uses: actions/checkout@v4
- name: Setting up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Installing dependencies
run: pip install -r requirements.txt
- name: Running the Python script
run: python scraper.py
env:
SHIFTBOARD_USERNAME: ${{ secrets.SHIFTBOARD_USERNAME }}
SHIFTBOARD_PASSWORD: ${{ secrets.SHIFTBOARD_PASSWORD }}
MY_TELEGRAM_CHAT_ID: ${{ secrets.MY_TELEGRAM_CHAT_ID }}
TELEGRAMBOT_TOKEN: ${{ secrets.TELEGRAMBOT_TOKEN }}
SHIFTBOARD_LOGIN_URL: ${{ secrets.SHIFTBOARD_LOGIN_URL }}
THE_AES_KEY: ${{ secrets.THE_AES_KEY }}
THE_AES_IV: ${{ secrets.THE_AES_IV }}
- name: Push updated file
uses: EndBug/add-and-commit@v9
with:
committer_name: GitHub Actions
committer_email: actions@github.com