Scrape MS Distro Sites #629
This file contains hidden or 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 MS Distro Sites | |
| on: | |
| schedule: | |
| - cron: '45 0 * * *' | |
| #workflow_dispatch: | |
| jobs: | |
| scrape: | |
| runs-on: ubuntu-latest | |
| env: | |
| POSTGRES_USER: ${{ secrets.POSTGRES_USER }} | |
| POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }} | |
| POSTGRES_HOST: ${{ secrets.POSTGRES_HOST }} | |
| POSTGRES_DATABASE: ${{ secrets.POSTGRES_DATABASE }} | |
| steps: | |
| - uses: actions/checkout@v1 | |
| - name: Set up Python 3.13 | |
| uses: actions/setup-python@v1 | |
| with: | |
| python-version: 3.13 | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install requests beautifulsoup4 psycopg2-binary | |
| - name: Populate Windows | |
| run: python3 ./scrape-microsoft.py | |
| - name: Populate MacOS | |
| run: python3 ./scrape-apple.py |