Here’s a special service to users with German language skills – and a challenge to adjust the code for everyone else: the code below uses the RSS feed from a major German news magazine, opens a selection window where you can select one or more articles, and then opens the selected articles in your default browser:
# URL to RSS Feed $url = 'http://www.spiegel.de/schlagzeilen/index.rss' $xml = New-Object -TypeName XML $xml.Load($url) # the subproperties (rss.channel.item) depend on the RSS feed you use # and may be named differently $xml.rss.channel.item | Select-Object -Property title, link | Out-GridView -Title 'What would you like to read today?' -OutputMode Multiple | ForEach-Object { Start-Process $_.link }
The basic design is always the same: to adjust the code to another RSS feed, simply explore the properties (the nested structure of the underlying XML).
psconf.eu – PowerShell Conference EU 2019 – June 4-7, Hannover Germany – visit www.psconf.eu There aren’t too many trainings around for experienced PowerShell scripters where you really still learn something new. But there’s one place you don’t want to miss: PowerShell Conference EU – with 40 renown international speakers including PowerShell team members and MVPs, plus 350 professional and creative PowerShell scripters. Registration is open at www.psconf.eu, and the full 3-track 4-days agenda becomes available soon. Once a year it’s just a smart move to come together, update know-how, learn about security and mitigations, and bring home fresh ideas and authoritative guidance. We’d sure love to see and hear from you!