Python Forum

Full Version: Scraping Whole Page Source
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is there a way to input the whole page source in exactly same form as you would be seeing it when you click rmb 'View page source' on a browser, just a raw page with thousands of lines of text?. I've tried requests.get(), but I'm only getting a fraction of it.
Posting threads when too tired for an adequate research maybe not the best idea.

from selenium import webdriver

browser = webdriver.Chrome()
browser.get('https://whateverpage.com')
x = browser.page_source