Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
destroyallsoftware cheap screencast downloader
#!/usr/bin/ruby
require 'rss'
#this assumes you have a cookies.txt with destroyallsoftware.com cookies... later ill add a signin method..
class Link
attr_accessor :link,:title,:date
def initialize(link,title,date)
@link = link
@title = title
@date = date
end
def filename
"#{self.date.strftime("%F")}-#{self.link.split('/')[-2]}.mov"
end
def download
p %x(wget -c #{self.link} --load-cookies cookies.txt -O #{self.filename})
end
end
rss_string = open('https://www.destroyallsoftware.com/screencasts/feed').read
rss = RSS::Parser.parse(rss_string, false)
links = rss.items.map {|item| Link.new(item.link+"/download",item.title,item.pubDate)}
links.each do |link| link.download end
@bf4

This comment has been minimized.

Copy link

commented Feb 13, 2013

@orlando

This comment has been minimized.

Copy link
Owner Author

commented Apr 5, 2018

@bf4 lol just saw your message, this one is shorter, but I don't know if it works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.