Skip to content

KogoCampus/course-scraper-job

Repository files navigation

Course Scraper

Setup

  1. Copy .env.example to .env and populate with your values.
cp .env.example .env
  1. Run docker compose to build and run the container:
docker compose up
# or
sudo docker compose up --build

Monitoring & Task Management Console

Triggering Tasks Manually via CLI (Local Testing)

curl -X POST \
  'http://localhost:5555/api/task/async-apply/scraper_task' \
  -u "admin:password" \
  -d '{"args": ["task_name"]}'

for example:

curl -X POST \
  'http://localhost:5555/api/task/async-apply/scraper_task' \
  -u "admin:password" \
  -d '{"args": ["sample"]}'

Edit the environment variables for the production environments

  1. Install SOPS:
brew install sops
  1. Decrypt the environment file:
sops --config .sops/sops.yaml -d -i .sops/prod.env
  1. Fill in the missing values in the values.env file.

  2. Encrypt the environment file:

sops --config .sops/sops.yaml -e -i .sops/prod.env

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published