How to get inspect element in requests_html library?

Viewed 7

Basically, I wanna get the inspect element of a website on requests_html library after, say 15 secs, of loading, (not the page source). So I tried this:

session = HTMLSession()
response = session.get(url, timeout=30).text
hh = HTML(html=response)
hh.render(timeout=60, keep_page=True)
return hh

This does not return the inspect element code, but something similar to the "view-source". Moreover, how do I get the page after a given time, say there is a timer I wanna get the page source at the given time on the timer.

Thanks in advance.

0 Answers
Related