Skip to content

Instantly share code, notes, and snippets.

@binarymutant
Created August 26, 2009 11:01
Show Gist options
  • Save binarymutant/175457 to your computer and use it in GitHub Desktop.
Save binarymutant/175457 to your computer and use it in GitHub Desktop.
premium rapidshare downloader
#!/usr/bin/env ruby
username = "example"
password = "test"
`wget --save-cookies ~/.rapidshare --post-data "login=#{username}&password=#{password}" -O - https://ssl.rapidshare.com/cgi-bin/premiumzone.cgi > /dev/null`
if ARGV[0] =~ /http*/
`wget -c --load-cookies ~/.rapidshare #{ARGV[0]}`
elsif ARGV[0] = "-f"
`wget -c --load-cookies ~/.rapidshare -i #{ARGV[1]}`
else
puts "rapidshare-dl (-f [file]) <url>"
exit
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment