0

I'm trying to extract the HTML code from a website using Python 3 and the requests module:

html = requests.get(link).text

When the website loads, initially not all of the information is displayed and a loading screen is shown: Website immediately after loading

Less than a second later, the website has fully loaded with all the information I want to access. When I extract HTML code using the code above, I get the HTML code of the loading screen.

How do I extract the HTML code from the website after it has fully loaded?

Ron Lauterbach
  • 77
  • 1
  • 1
  • 12
  • You 'll have to selenium if you want the page to load or you can look for an api endpoint. Maybe try with requests_html too – Ibtsam Ch Sep 16 '21 at 07:16

0 Answers0