Automate screenshot grabbing from web with Python and Selenium #2
Автор: Mateusz Piórkowski
Загружено: 2023-10-12
Просмотров: 179
Описание:
You can grab screenshots from web with python.
📖Chapters:
00:00 Automate web screenshots with Python
00:11 Editing Workflow
00:17 Advanced Slides Localhost
00:30 "How to make screenshot with python"
00:35 2019 is too old
00:42 Selenium
00:52 Final Working Code and Explanation
01:22 Results
01:37 Thank You!
⌨ Code:
---
from selenium import webdriver
from time import sleep
END = 14
URL = "http://localhost:3000/#/"
driver = webdriver.Chrome()
for i in range(1,END+1):
driver.maximize_window()
driver.get(URL+str(i))
sleep(0.6)
driver.save_screenshot(str(i)+'.png')
driver.quit()
---
👇 Resources & Links:
Motion Canvas: https://motioncanvas.io/
Selenium Docs #1: https://chromedriver.chromium.org/getting-...
Selenium Docs #2: https://sites.google.com/a/chromium.org/ch...
Stack Overflow Reply: https://stackoverflow.com/a/50616021
Video Script and Code: https://github.com/Ravikin/scripts/blob/ma...
Blog: https://mpiorkowski.com
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: