Scrape and Save Data #38
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 and Save Data | |
#steps | |
on: | |
schedule: | |
- cron: "0 0 * * *" | |
workflow_dispatch: | |
jobs: | |
scrape-and-save: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v2 | |
- name: Setup Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.10 | |
- name: Install Dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install bs4 requests dicttoxml tabulate xmltodict | |
pip install pandas==1.5.3 | |
- name: Run Script | |
run: python app.py | |
- name: Commit and Push | |
uses: EndBug/add-and-commit@v7 | |
with: | |
default_author: github_actions | |
message: "Update data" | |
add: "./*" |