-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (28 loc) · 1.05 KB
/
python-scrapper.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# This workflow will install Python dependencies, run the python scrapper script for the Algerian Research Hub Funding Opportunities
name: Python web scrapper
on:
#Trigger the workflow on daily basis (To update the funding request page)
schedule:
#schedule runs every day at 0:00 (mid-night)
- cron: "0 0 * * *"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.x' #Version range or exact version of a python version to use, using semVer's version range syntax
architecture: 'x64' # optional x64 or x86. Default to x64 if not scpecified
- name: Install dependencies
run: |
pip install --upgrade pip
pip install requests
pip install airtable
pip install python-dateutil
- name: Run the python scrapper script
env:
AIRTABLE_BASE_ID: ${{ secrets.AIRTABLE_BASE_ID }}
AIRTABLE_API_KEY: ${{ secrets.AIRTABLE_API_KEY }}
run: |
python scraper.py