PythonでSeleniumを使用してスクリーンショットを撮ってみます。 スクリーンショットを撮るためには、Seleniumモジュールが必要となりますので、事前にインストールする必要があります。 ■Python 今回のPythonのバージョンは、「3.8.2」を使用しています。(Windows10) ■Seleniumを使用してスクリーンショットを撮るでは、早速Seleniumモジュールを使用してスクリーンショットを撮るスクリプトを書いていきます。 ■コードfrom selenium import webdriver import chromedriver_binary driver = webdriver.Chrome() url = "https://laboratory.kazuuu.net/" driver.get(url) driver.save_screenshot("ima
![PythonでSeleniumを使用してスクリーンショットを撮る](https://cdn-ak-scissors.b.st-hatena.com/image/square/b0e6c97966e87a40b9ffc727d8131acbff631a61/height=288;version=1;width=512/https%3A%2F%2Flaboratory.kazuuu.net%2Fwp-content%2Fuploads%2F2021%2F07%2FL.png)