from selenium import webdriver

url = "https://www.baidu.com"
driver_path = r"G:\tools\chromedriver.exe"

driver = webdriver.Chrome(executable_path=driver_path)
driver.get("https://www.baidu.com")
text  = driver.page_source
print(text)
2a7d65ac8c86e6c972e8507e9db2c7786c0ac393
<mask token>

<mask token>
driver.get('https://www.baidu.com')
<mask token>
print(text)

<mask token>
url = 'https://www.baidu.com'
driver_path = 'G:\\tools\\chromedriver.exe'
driver = webdriver.Chrome(executable_path=driver_path)
driver.get('https://www.baidu.com')
text = driver.page_source
print(text)

from selenium import webdriver
url = 'https://www.baidu.com'
driver_path = 'G:\\tools\\chromedriver.exe'
driver = webdriver.Chrome(executable_path=driver_path)
driver.get('https://www.baidu.com')
text = driver.page_source
print(text)

from selenium import webdriver

url = "https://www.baidu.com"
driver_path = r"G:\tools\chromedriver.exe"

driver = webdriver.Chrome(executable_path=driver_path)
driver.get("https://www.baidu.com")
text  = driver.page_source
print(text)