Spaces:
Sleeping
Sleeping
Download .github/workflows/scrape.yml from dimdimm/crawling-datas: direct link, hf CLI and curl.
- Browser
- Download file 621 Bytes
-
https://huggingface.co/spaces/dimdimm/crawling-datas/resolve/main/.github/workflows/scrape.yml
- Command line
-
hf download hf://spaces/dimdimm/crawling-datas/.github/workflows/scrape.yml
-
curl -L -o scrape.yml https://huggingface.co/spaces/dimdimm/crawling-datas/resolve/main/.github/workflows/scrape.yml
621 Bytes
| name: scrape | |
| on: | |
| schedule: | |
| - cron: "0 3 * * *" | |
| workflow_dispatch: | |
| jobs: | |
| run: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install dependencies | |
| run: pip install -r requirements.txt | |
| - name: Install Playwright Chromium | |
| run: python -m playwright install --with-deps chromium | |
| - name: Run scraper | |
| run: python run.py --once | |
| env: | |
| SUPABASE_URL: ${{ secrets.SUPABASE_URL }} | |
| SUPABASE_ANON_KEY: ${{ secrets.SUPABASE_ANON_KEY }} |