Skip to content

Automated web scraper #180

Automated web scraper

Automated web scraper #180

Workflow file for this run

name: Automated web scraper
on:
schedule:
- cron: "0 6 * * *"
jobs:
web-scraping:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3 # checkout the repository content to github runner
- name: Set up Python
uses: actions/setup-python@v4 # latest actions repo for python
with:
python-version: "3.9" # install the python version needed
- name: Install Dependencies
run: pip install -r requirements.txt
- name: Run Web Scraping Script
env:
FROM: ${{ secrets.FROM }}
TO: ${{ secrets.TO }}
PASS: ${{ secrets.PASS }}
run: python news_crawler_and_email.py