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