Build a Scheduled Task
Scheduled tasks, also known as scheduled jobs or cron jobs, are automated processes executed at specific times or intervals. They’re great for repetitive operations, like backing up data, sending reports, or updating website content.
In py.space, scheduled tasks are just script widgets that have been scheduled to run at regular intervals.
To create a scheduled task, all you need to do is create a script widget, press the “Schedule” button and choose when you want your code to run!
In this tutorial, you’ll use the BeautifulSoup
library to build a web scraper that runs every day and emails you a quote of the day.
Example: Quote Web Scraper
Web scrapers extracts information from websites. In this tutorial, we’ll build a simple web scraper to extract the “Quote of the Day” from the Wikiquote page. We’ll schedule our script to run every day and email us the quote!