import urllib2 import urllib import re import time plugin_name = "Rapidshare.com" plugin_type = "hoster" plugin_pattern = r"http://(?:www.)?rapidshare.com/files/" def get_file_url(url): root_url = urllib2.urlopen(url).read() if re.search(r".*The File could not be found.*", root_url) != None or re.search(r"(

This limit is reached.

)", root_url) or re.search(r"(.*is momentarily not available.*)", root_url): return ("missing", url) else: last_url = urllib2.urlopen(re.search(r"