清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>
#encoding:utf-8 require "base64" class TurnUrl def initialize(url) @url = url.to_s end def url_encoding @url = Base64.decode64(@url) end def to_s if @url.empty? return "地址为空,请重新输入\n" end if @url =~ /thunder/ @url = @url[10..-1] + "\n" @url = url_encoding() @url = @url[2...-2] elsif @url =~ /flashget/ @url = @url[11...@url.index("&")] + "\n" @url = url_encoding() @url = @url[10...-10] elsif @url =~ /qqdl/ @url = @url[7..-1] + "\n" @url = url_encoding() else @url = "地址非法,请重新输入" end return @url end private :url_encoding end item = "thunder://QUFodHRwOi8veGlhemFpLnhpYXphaWJhLmNvbS9Tb2Z0L1kvWW91\ ZGFvRGljdF94aWF6YWliYS5leGVaWg==" url = TurnUrl.new(item) print "url is: #{url}"