Tag Archives: python

Using cutycapt to take a screen capture of a webpage

 


#!/bin/bash
_now=$(date +"%m_%d_%Y_%H-%M-%S")
_file="/home/smagee/Scripts/capture_$_now.jpg"
echo "Starting capture to $_file..."
date
xvfb-run --server-args="-screen 0, 1024x768x24" cutycapt --url=https://www.timeanddate.com/worldclock/uk/london --out="$_file"

When you execute the file you will generate a jpg with the date and time as the file name for the URL specified.


python3.5 ./cutycapt.sh