It's a method object, bound to the BeautifulSoup
object. You didn't call it.
It's representation is a little confusing because the repr()
of the BeautifulSoup parse tree is included, which is simply the tree rendered as a HTML source string.
To get to the underlying BeautifulSoup parse tree, you can use; use str()
to turn that back into a source string:
html = str(browser.state.parsed)
Alternatively, you can still access the original requests
response object with:
browser.state.response
which means that the original downloaded HTML is found as:
html = browser.state.response.content