Skip to content Skip to sidebar Skip to footer

How To Get Html That I See In Inspect Element?

I'm programming a web-scraper app with python. The website I want to scrape data use JS. How can I get the source that I see in inspect element?

Solution 1:

With javascript pycurl will not work, you need Selenium to get the stuff you need.

import selenium
driver = selenium.webdriver.Firefox()
driver.get("your_url")

Make sure you have Firefox (or another browser selenium supports) installed.


Post a Comment for "How To Get Html That I See In Inspect Element?"