Installing xlrd
- Download it from here and extract it
- Start terminal and go to the xlrd extracted directory
- Type in 'setup.py install' and press enter to start the installation
Sample code
import xlrd
book = xlrd.open_workbook('keyword.xlsx');
print book.nsheets
print book.sheet_names()
sh = book.sheet_by_index(0)
print sh.name, sh.nrows, sh.ncols
http://stackoverflow.com/questions/3504604/recommend-a-python-library-to-read-excel-xls-files