#getDistantFile #http://warriordudimanche.net import urllib # get_distant_file function def get_distant_file(string): try: data=urllib.urlopen(string).read() except: data="" finally: return data.encode('utf8')