how to use xlrd to read xls in gae?(python)

Thursday, July 3, 2014

I have not used xlrd ever.


It is said how to open a xls file:


data = xlrd.open_workbook('excelFile.xls')


In my GAE app ,the xls file is from a website like www.xxxxx.com/1.xls


so,use urlfetch :



result = urlfetch.fetch('www.xxxxx.com/1.xls')

if result.status_code == 200:

doc = result.content


how to use xlrd.open_workbook in this situation?







http://ift.tt/Vh8DYQ