You can programmatically check for new episodes on Laracasts by using their RSS feed. Most series and the main site provide an RSS feed that lists the latest episodes. Here’s how you can do it:
-
Find the RSS Feed URL:
The main Laracasts RSS feed is usually at:https://laracasts.com/episodes.rss -
Parse the RSS Feed:
You can write a simple script in PHP (or any language) to fetch and parse the RSS feed, then filter episodes by date (e.g., only those from the current week).Example in PHP:
$feed = simplexml_load_file('https://laracasts.com/episodes.rss'); $thisWeek = strtotime('monday this week'); foreach ($feed->channel->item as $item) { $pubDate = strtotime((string) $item->pubDate); if ($pubDate >= $thisWeek) { echo $item->title . ' - ' . $item->link . PHP_EOL; } } -
Alternative: Use an RSS Reader:
If you don’t want to code, you can subscribe to the RSS feed using any RSS reader (like Feedly or Inoreader). These apps will highlight new episodes for you, and many allow filtering by date or unread status.
Summary:
- Use the RSS feed to programmatically or visually track new episodes.
- Filter by date to see only this week’s content.
- RSS readers are a no-code solution for this.
Let me know if you need a script in another language!