← back to Cypress Awards

backend/run_scraper.sh

8 lines

#!/bin/bash
# Cy Pres Awards Scraper - Runs every 2 hours

cd /root/WebsitesMisc/cypresawards/backend
echo "$(date): Starting cy pres scraper..." >> /var/log/cypresawards_scraper.log
node src/scraper/main.js --mega >> /var/log/cypresawards_scraper.log 2>&1
echo "$(date): Scraper completed" >> /var/log/cypresawards_scraper.log