use strict;
use warnings;
use WebService::Browshot;

my $client = WebService::Browshot->new(key => $ENV{BROWSHOT_API_KEY});
my $content = $client->screenshot_html(id => 1103982291);
die "HTML download failed\n" unless length $content;
open my $file, '>:raw', 'capture.html' or die $!;
print {$file} $content;
close $file;
