In the python requests module there is the following construction:

r = requests.get("https://google.com") r.text #получение html кода страницы 

Question:

How to perform this action in python using a standard (or not) browser in the system?

    1 answer 1

    To solve the problem I used selenium:

     from selenium import webdriver driver = webdriver.Firefox() driver.get("https://google.com") driver.page_source 
    • By the way, using selenium, you can achieve the same result without opening a browser window (as in console mode), using PhantomJS - Bogdan
    • @Bogdan I like to see how the script "walks" through the pages) - Sergey Andreev