Skip to content

Instantly share code, notes, and snippets.

Created May 1, 2019 17:04
What would you like to do?
Make a screenshot of any webpage using Python, Selenium and Chrome
# 1) pip install selenium
# 2) ChromeDriver:
from selenium import webdriver
DRIVER = 'chromedriver'
driver = webdriver.Chrome(DRIVER)
driver.get('') # какой сайт
# если надо скриншот страницы целиком с прокруткой до низа:
element = driver.find_element_by_tag_name('body')
Copy link

moonzlo commented Jan 31, 2023

It doesn't work...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment