Project

PSWebToolbox

Simple PowerShell Module to get RSS feeds

Stars13
Forks3
Open issues0
PowerShell Gallery downloads842
Language: PowerShell Updated: 2019-07-28T20:24:43.0000000+00:00

Curated Examples

Filter recent RSS entries

Read an RSS feed and keep only entries newer than a chosen date.

This pattern is useful when a report should include only recent feed entries.

It is adapted from Examples/Example-RssFeed1.ps1.

Example

Import-Module PSWebToolbox

$feed = Get-RSSFeed -Url 'https://evotec.xyz/feed' -All -Verbose
$since = (Get-Date).AddMonths(-3)

$recent = $feed | Where-Object { $_.PublishDate -ge $since }
$recent | Format-Table Title, PublishDate, Link -AutoSize

What this demonstrates

  • reading all available feed entries
  • filtering by publish date
  • preparing a compact result for a report or review

Source