How does python get all the code within a tag in a piece of html code?

for example, I need all the source code within the < table > tag
for special reasons, do not use the page_source method

Sep.07,2021

Fix it.
just use "innerHTML ()"

Menu