← back to Cypress Awards

backend/run_news_scraper.sh

8 lines

#!/bin/bash
# Cy Pres News Scraper - Runs every 6 hours

cd /root/WebsitesMisc/cypresawards/backend
echo "$(date): Starting news scraper..." >> /var/log/cypresawards_news_scraper.log
node src/scraper/fetch_news.js 10 >> /var/log/cypresawards_news_scraper.log 2>&1
echo "$(date): News scraper completed" >> /var/log/cypresawards_news_scraper.log