1

I need to extract exactly the html code of a website that is displayed with F12 on a program python. I tried with requests.get(url) and driver.page_source but I only get the script (devoid of the values I need).

vito
  • 11
  • 1

1 Answers1

0

You are not getting the "actual contents of the webpage" because the JS code needs to run first and the generated content needs to be rendered on the DOM.

Consider this question, the answers should be helpful.

maestromusica
  • 706
  • 8
  • 23