Contact

admin

About Me · Send mail to the author(s) E-mail · Twitter

At GROSSWEBER we practice what we preach. We offer trainings for modern software technologies like Behavior Driven Development, Clean Code and Git. Our staff is fluent in a variety of languages, including English.

Feed Icon

Tags

Open Source Projects

Archives

Blogs of friends

Now playing [?]

Error retrieving information from external service.
Audioscrobbler/Last.fm

ClustrMap

RSS Enclosure Downloader In PowerShell

Posted in PowerShell at Friday, 25 July 2008 23:07 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])
}