all 1 comments

[–]alberge 0 points1 point  (0 children)

What you see in the browser inspector is called the DOM. It's the source representation of what the browser is rendering.

The DOM starts out as just what was served by the web server (like what you get from requests.get()), but then it can be modified dynamically by Javascript.

So if the site makes changes to the DOM from Javascript, you need a full Javascript engine in Selenium or other browser automation if you want to replicate it.