Beautiful Soup дает NULL

from bs4 import BeautifulSoup


page=BeautifulSoup(page2)
self.response.out.write(page.title.string)
self.response.out.write("""<br />""")

mdays={}
mo={}
cost={}
ac={}
nc={}
month=(page.findAll('td',style="border-style: solid; border-width: 1px", align="RIGHT"))

mo[0]=(month[0].contents)
mdays[0]=month[1].contents
cost[0]=month[2].contents
nc[0] = month[4].contents
ac[0]=month[5].contents
self.response.out.write(mo[0].string)

Первый оператор out.write печатает заголовок, а остальные печатают Null. Код Beautful Soup правильно работает в IDLE, но не в AppEngine.


person pmod    schedule 16.03.2013    source источник
comment
stackoverflow.com/questions/10162616/   -  person    schedule 16.03.2013