Selenium_Screenshot/screenshot-googledrive is a file to take a screenshot and save it on Google Drive. It fetches a link to the web page from Google Spreadsheet. This code works through headless Selenium.
Firstly, install the chromium-chromedriver and Selenium. Secondly, import libraries from Google Collaboratory. Thirdly, import Selenium's libraries.
Then, I import options of Selenium to use Chronium with headless.
Next, connect to Google Spreadsheet to fetch links to access the web pages to take a screenshot.
After that, access to the web pages through Chrome driver and take a screenshot. It names a file based on data on the Google Spreadsheet.