python - Cannot write some Paragraph into Excel cell - XLWT -



python - Cannot write some Paragraph into Excel cell - XLWT -

i scraping rooms information

http://www.wotif.com/hotel/view?hotel=w20307&page=1&adults=2&region=1&setcurrency=true&usercurrencycode=usd

with beautifulsoap library , saving results excel xlwt-future-0.8.0.

everything scraped except, when code reaches scraping "premier total harbour b&b" hotel's description , writes excel, cell empty. here snippet scrapes description

if rooms.select("p.deal-description"): #room description print("deal desc " + rooms.select("p.deal-description")[0].text.strip()) worksheet.write(file_row_number, 4,rooms.select("p.deal-description")[0].text.strip())

all room's description before "premier total harbour b&b" scraped , entered excel successfully.

what can problem? illegible characters in description?

python excel python-3.x xlwt

Comments

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -