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®ion=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
Post a Comment