#!/bin/bash

# Activating virtual environment
source venv/bin/activate

echo "Starting hourly crawler in background..."
nohup python schedule_crawler.py > /dev/null 2>&1 &

echo "Crawler is now running in the background."
echo "Check scheduler.log and crawler.log for output."
echo "To stop the crawler later, run: pkill -f schedule_crawler.py"
