Contact

admin
  • Send mail to the author(s) E-mail
  • del.icio.us
  • Skype
  • twitter
Feed Icon

Tags

Open Source Projects

Archives

Blogs of friends

Now playing [?]

  1. The Source Featuring Candi Stanton – You Got The Love
  2. Kylie Minogue – Can't Get Blue Monday Out Of My Head (Original Radio Edit)
  3. The Cult – She Sells Sanctuary
  4. Ilan Eshkeri & Steve McLauchlin – Opening
  5. FC/Kahuna – Hayling (Radio Edit)
Audioscrobbler/Last.fm

ClustrMap

RSS Enclosure Downloader In PowerShell

Posted in PowerShell at Friday, July 25, 2008 11:07 PM W. Europe Daylight Time

I used this one today to download all images of a Picasa album:

$feed=[xml](New-Object System.Net.WebClient).DownloadString("http://the/rss/feed/url")

foreach($i in $feed.rss.channel.item) {
	$url = New-Object System.Uri($i.enclosure.url)

	$url.ToString()
	$url.Segments[-1]

	(New-Object System.Net.WebClient).DownloadFile($url, $url.Segments[-1])
}