SHARE
TWEET

Download hrej podcast

a guest Aug 27th, 2018 37 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $rssXml = New-Object System.Xml.XmlDocument
  2. $rssXml.load("http://www.hrej.cz/podcasty/podcast.xml")
  3. $seznamMp3 = $rssXml.SelectNodes("//rss/channel/item/guid[starts-with(.,'http') and substring(.,string-length(.)-2) = 'mp3']")
  4. foreach($mp3 in $seznamMp3)
  5. {
  6.     Write-Host $mp3.'#text'
  7.     Invoke-WebRequest -Uri $mp3.'#text' -OutFile ('c:\temp\'+($mp3.'#text').substring($mp3.'#text'.LastIndexOf('/')+1))
  8. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top