def loadData(request):
import xlrd
import urllib
print "loadData"
underlys = Underlying.objects.all()
for u in underlys:
link = 'http://www.url.com/?file'
try:
fileHandler = urllib.urlopen(link)
file = fileHandler.read()
xlrd.???(file)
except :
print "URL Loading Error : %s"%u.code
return HttpResponse("Done")
我想問,xlrd 如何才能讀取這file 呢?