cron_stuff.txt
# Run at 4:30 PM (Market Close) - Only on weekdays (Mon-Fri)
30 16 * * 1-5 cd /home/srsimpson/webscraper && /home/srsimpson/webscraper/env/bin/python3 /home/srsimpson/webscraper/scripts/fetch_stock_prices.py >> /home/srsimpson/webscraper/logs/cron.log 2>&1
# get new crypto prices everyday, every 5 minutes
*/5 * * * * cd /home/srsimpson/webscraper && /home/srsimpson/webscraper/env/bin/python3 /home/srsimpson/webscraper/scripts/fetch_crypto_prices.py >> /home/srsimpson/webscraper/logs/cron.log 2>&1
# Look for new capitol trades
30 23 * * * cd /home/srsimpson/webscraper && /home/srsimpson/webscraper/env/bin/python3 /home/srsimpson/webscraper/scrapers/capitol_trades_get_new.py >> /home/srsimpson/webscraper/logs/cron.log 2>&1
← Back to Logs