Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (21 sloc) 557 Bytes
require 'rss/1.0'
require 'rss/2.0'
require 'open-uri'
source = ""
content = ""
open(source) do |s|
content =
rss = RSS::Parser.parse(content, false)
#=> Fetching the URL of the media
final_url = rss.items.collect do |item|
item.enclosure.url['mp4']= 'webm'
#p final_url.inspect #=> printing this is only for debugging purpose
final_url.each do |url|
`wget -c #{url.downcase}`
url['webm'] = 'zip'
url['videos'] = 'sources'
`wget -c #{url.downcase}`
Something went wrong with that request. Please try again.