использую
centos 7
python 3.6
Google Chrome 83.0.4103.61
вот пример кода
from selenium import webdriver
chrome_options = webdriver.ChromeOptions()
prefs = {"profile.managed_default_content_settings.images": 2}
chrome_options.add_experimental_option("prefs", prefs)
chrome_options.add_argument('--headless')
chrome_options.add_argument('--no-sandbox')
chrome_options.add_argument('--sec-fetch-site=cross-site')
chrome_options.add_argument('--sec-fetch-mode=navigate')
chrome_options.add_argument('-- sec-fetch-dest=iframe')
#chrome_options.add_argument('--disable-dev-shm-usage')
#chrome_options.add_argument('--hide-scrollbars')
chrome_options.add_argument('--ignore-ssl-errors=true')
chrome_options.add_argument('--ssl-protocol=any')
chrome_options.add_argument('--upgrade-insecure-requests=1')
chrome_options.add_argument('--user-agent="User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36"')
chrome_options.add_argument("-incognito");
chrome_options.add_argument("--disable-popup-blocking");
self.driver = webdriver.Chrome('/var/python_script/chromedriver3', chrome_options=chrome_options)
self.driver.get('https://models-market.ru/')
self.driver.set_window_size(1380, 1100)
self.driver.get_screenshot_as_file(p)
content = self.driver.page_source
# content - тут пустая страница html/head/body
image = Image.open(p)
size = 840, 980
image.thumbnail(size)
image.save(p, quality=75)