Skip to content

ARCHIVED Scrape and Update News #2

ARCHIVED Scrape and Update News

ARCHIVED Scrape and Update News #2

Workflow file for this run

name: Scrape and Update News
on:
- workflow_dispatch
#schedule:
#- cron: '*/30 * * * *' # Runs every 30 minutes
jobs:
scrape_and_update:
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install requests beautifulsoup4
- name: Scrape news and update README
run: python ./scripts/scrape_news.py
- name: Commit and Push
run: |
git config --global user.name 'aryashah2k'
git config --global user.email 'arya.shah82@nmims.edu.in'
git add README.md
git commit -m "Update news README"
git push