Scheduling Use cron job to schedule the script to run at a specific time. crontab -e It is recommended to run this with YouTube premium if you don't want to wake up to an ad.