Powershell

I had a cool two-paragraph explanation all typed up–then Live Writer crashed.  :/

Anyway, here’s a little script which takes advantage of the OPML export feature of Bloglines to give you a table of all of the Powershell-related blogs I follow.  You may find some good resources in here.

Without further ado, the script:

param ( $Title )
$webClient = new-object System.Net.WebClient
$OpmlUrl = "http://bloglines.com/export?id=halr9000"
[xml]$Opml = $webClient.DownloadString($OpmlUrl)
$PsBlogroll = $Opml.opml.body.outline | Where-Object { $_.text -eq '@Powershell' }
$Output = $PsBlogroll | Select-Object -ExpandProperty Outline | Select-Object Title, htmlUrl, xmlUrl
if ( $Title ) { $Output | Where-Object { $_.title -match $Title } }
else { Write-Output $Output }

If you run it like so: "Get-PsBlogroll | select title,xmlurl | out-gridview" (out-gridview comes with the PowerShell V2 CTP), the end result looks like so:

image

Update @ Monday, June 09, 2008 12:27:14 AM

Added ability to regex search on the feed title.

: http://halr9000.com/article/487

( Show All | Hide All ) Post a comment now » Sorry, the comments are closed.
2008-05-28 08:33:31

[...] WPF & PowerShell – Part 5 has a script for “Get-Listbox” and for “Show-Control” and Halr9000 wrote a script he called Get-PSBlogroll [...]

2008-05-29 19:30:21

Excellent ! Thanx.

2008-06-08 23:05:03

[...] blogrolls from Hal and Jeffrey Hicks at [...]

Sorry, the comment form is closed at this time.