i'm making simple command line program gathering , parsing information websites (pretty generic) using twill module in python. want assign html output variable using twill's show() command run page through parsing commands, every time assign variable...
htmlstring = twill.commands.show()
i humongous flood of html on command line (and idle, matter). why this? i'm not asking print variable, there's no print command anywhere near it. want assign in further manipulation. why variable assignment cause print occur? it's not fatal error or anything, really, inconvenient. i'm on python 2.6, twill 0.9, , ubuntu, if pertains anything.
i propose use lxml
or beautifulsoup
parse html, never faced twill
. see calling .show()
method, maybe method have print
statement inside.
Comments
Post a Comment