Run Raspador Noticias #1
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 Raspador Noticias | |
on: | |
schedule: | |
- cron: "0 3 * * 0" | |
jobs: | |
run-scraper: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Install dependencies | |
working-directory: ./backend | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Executa o raspador | |
working-directory: ./backend/raspadores/noticias_secult_bs | |
run: | | |
python3 raspador.py |