Takes a screenshot from a whole page (same size as page / no repeating parts)
Project description
Takes a screenshot from a whole page (same size as page / no repeating parts)
# Tested with:
# https://github.com/ultrafunkamsterdam/undetected-chromedriver
# Python 3.9.13
# Windows 10
$pip install a-selenium-screenshot-whole-page
from auto_download_undetected_chromedriver import download_undetected_chromedriver
import undetected_chromedriver as uc
from a_selenium_screenshot_whole_page import get_screenshot_whole_page_with_scroll
from time import sleep
if __name__ == "__main__":
folderchromedriver = "f:\\seleniumdriver2"
path = download_undetected_chromedriver(
folder_path_for_exe=folderchromedriver, undetected=True
)
driver = uc.Chrome(driver_executable_path=path)
driver.get(
r"https://github.com/hansalemaos/a_cv2_easy_resize"
)
sleep(2)
get_screenshot_whole_page_with_scroll(driver,sleepinterval=(0.2,0.8), save_path='f:\\testwholescreenshot.png')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for a_selenium_screenshot_whole_page-0.10.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f48e2309b02e77baef0fe094a93e03ee6831d5e0ac41709b609b6e69a9ae644 |
|
MD5 | 3cedebb895741114c0d95d40b0164470 |
|
BLAKE2b-256 | 54e1d32bb037409eaa50f0d39e8c58dc4ddfcaa6cabe87f9fe790bec4d4e4531 |
Close
Hashes for a_selenium_screenshot_whole_page-0.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58d9359bca63f665928b4408cd6dc1de77064adecf31cd936dbe20dc32ee2aa7 |
|
MD5 | a61abdcbc34e0751b4ce8a07b871827a |
|
BLAKE2b-256 | 1a651a7c7e10f783e0be9debd3b33610b25666236fddb653d8b6063492152f37 |