Here is an interesting command-line tool that allows you to automate the screen capture of websites. Shot Scraper thus makes it possible to immortalize what is on a web page.
But the tool does not stop there since it offers many options to adjust the size of the image, or to capture only a specific area of the page by relying on CSS selectors.
shot-scraper https://www.tech2geek.net/ shot-scraper https://www.tech2geek.net/ -o small.png --width 400 --height 800 shot-scraper https://www.tech2geek.net/ -s '#main'
The output can be in PNG or JPG and a Retina option allows you to double the resolution of an image if necessary. Shot-Scraper even allows you to interact with the page before taking the screenshot, so you can have exactly what you want on the screen.
To install shot-scraper:
pip install shot-scraper shot-scraper install
Shot-Scraper is designed to work with Chromium but you can also use it with Firefox or Webkit (Safari’s engine) like this:
shot-scraper install -b firefox