# Takes a screenshot of every element on a site
```python
# Tested with:
# https://github.com/ultrafunkamsterdam/undetected-chromedriver
# Python 3.9.13
# Windows 10
$pip install a-selenium-screenshots-all-elements
from auto_download_undetected_chromedriver import download_undetected_chromedriver
import undetected_chromedriver as uc
from a_selenium_screenshots_all_elements import get_screenshots_from_all_elements
if __name__ == "__main__":
folderchromedriver = "f:\\seleniumdriver3"
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")
get_screenshots_from_all_elements(driver, saveinfolder='f:\\testscreensht', cutinfos=80) # cutinfos = max letters in one line
```
<img src="https://github.com/hansalemaos/screenshots/raw/main/2023-01-01%2009_48_27-single_elements.png"/>
<img src="https://github.com/hansalemaos/screenshots/raw/main/144.png"/>
<img src="https://github.com/hansalemaos/screenshots/raw/main/146.png"/>
Raw data
{
"_id": null,
"home_page": "https://github.com/hansalemaos/a_selenium_screenshots_all_elements",
"name": "a-selenium-screenshots-all-elements",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "Selenium,elements,screenshot",
"author": "Johannes Fischer",
"author_email": "<aulasparticularesdealemaosp@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/ff/be/23bab9374c26abe2fb72121958f33e3826cae0b889f864a27edab4e5a762/a_selenium_screenshots_all_elements-0.10.tar.gz",
"platform": null,
"description": "\n# Takes a screenshot of every element on a site\n\n```python\n# Tested with:\n# https://github.com/ultrafunkamsterdam/undetected-chromedriver\n# Python 3.9.13\n# Windows 10\n\n\n$pip install a-selenium-screenshots-all-elements\n\nfrom auto_download_undetected_chromedriver import download_undetected_chromedriver\nimport undetected_chromedriver as uc\nfrom a_selenium_screenshots_all_elements import get_screenshots_from_all_elements\nif __name__ == \"__main__\":\n folderchromedriver = \"f:\\\\seleniumdriver3\"\n path = download_undetected_chromedriver(\n folder_path_for_exe=folderchromedriver, undetected=True\n )\n driver = uc.Chrome(driver_executable_path=path)\n driver.get(r\"https://github.com/hansalemaos/a_cv2_easy_resize\")\n\n get_screenshots_from_all_elements(driver, saveinfolder='f:\\\\testscreensht', cutinfos=80) # cutinfos = max letters in one line\n\n \n```\n\n\n<img src=\"https://github.com/hansalemaos/screenshots/raw/main/2023-01-01%2009_48_27-single_elements.png\"/>\n\n<img src=\"https://github.com/hansalemaos/screenshots/raw/main/144.png\"/>\n\n<img src=\"https://github.com/hansalemaos/screenshots/raw/main/146.png\"/>\n\n\n\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Takes a screenshot of every element on a site",
"version": "0.10",
"split_keywords": [
"selenium",
"elements",
"screenshot"
],
"urls": [
{
"comment_text": "",
"digests": {
"md5": "233b7a6d2147ff58ba927ef9e68241bb",
"sha256": "b3cdf4d9d42986e530b28fc77cbf16935108125b7cf94f378a35113d0957eaa0"
},
"downloads": -1,
"filename": "a_selenium_screenshots_all_elements-0.10-py3-none-any.whl",
"has_sig": false,
"md5_digest": "233b7a6d2147ff58ba927ef9e68241bb",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 6937,
"upload_time": "2023-01-01T13:06:37",
"upload_time_iso_8601": "2023-01-01T13:06:37.693292Z",
"url": "https://files.pythonhosted.org/packages/30/b7/2a7f69945c208a36cb9ac4e879c8faa77c5af94ca7057d0272b47688cdeb/a_selenium_screenshots_all_elements-0.10-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"md5": "bed825cb98f336a91bbecf9853fdf787",
"sha256": "702e503b901a02135b838ea888696e513b5cb7f310fb59fab9d3d974f2408468"
},
"downloads": -1,
"filename": "a_selenium_screenshots_all_elements-0.10.tar.gz",
"has_sig": false,
"md5_digest": "bed825cb98f336a91bbecf9853fdf787",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 5044,
"upload_time": "2023-01-01T13:06:39",
"upload_time_iso_8601": "2023-01-01T13:06:39.182545Z",
"url": "https://files.pythonhosted.org/packages/ff/be/23bab9374c26abe2fb72121958f33e3826cae0b889f864a27edab4e5a762/a_selenium_screenshots_all_elements-0.10.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-01-01 13:06:39",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "hansalemaos",
"github_project": "a_selenium_screenshots_all_elements",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [
{
"name": "a_cv_imwrite_imread_plus",
"specs": []
},
{
"name": "a_selenium2df",
"specs": []
},
{
"name": "a_selenium_screenshot_whole_page",
"specs": []
},
{
"name": "check_if_nan",
"specs": []
},
{
"name": "numpy",
"specs": []
},
{
"name": "opencv_python",
"specs": []
},
{
"name": "pandas",
"specs": []
},
{
"name": "PILasOPENCV",
"specs": []
},
{
"name": "regex",
"specs": []
},
{
"name": "selenium",
"specs": []
}
],
"lcname": "a-selenium-screenshots-all-elements"
}