You can easily get the page source in Selenium via the page_source attribute of the Selenium web driver.