Novel Scraper #40
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: Novel Scraper | |
| on: | |
| schedule: | |
| - cron: '40 8,20 * * *' | |
| workflow_dispatch: | |
| jobs: | |
| scrape: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - name: Install lncrawl | |
| run: pip install lightnovel-crawler | |
| - name: Install dependencies | |
| run: cd scrapers/novel-worker && npm ci | |
| - name: Run Novel Worker | |
| env: | |
| SUPABASE_DATABASE_URL: ${{ secrets.SUPABASE_DATABASE_URL }} | |
| INTERNAL_API_URL: ${{ secrets.INTERNAL_API_URL }} | |
| INTERNAL_API_KEY: ${{ secrets.INTERNAL_API_KEY }} | |
| LNCRAWL_PATH: lncrawl | |
| run: cd scrapers/novel-worker && npx tsx src/index.ts |