{"id":880,"date":"2014-10-15T10:03:21","date_gmt":"2014-10-15T14:03:21","guid":{"rendered":"http:\/\/agileadam.com\/?p=880"},"modified":"2015-09-28T01:26:21","modified_gmt":"2015-09-28T05:26:21","slug":"webkit2png","status":"publish","type":"post","link":"https:\/\/agileadam.com\/2014\/10\/webkit2png\/","title":{"rendered":"Grabbing Screenshots for a List of URLs"},"content":{"rendered":"

UPDATE<\/strong>: There’s a better tool for this job. View my new post<\/a> about Pageres<\/em>.<\/p>\n

webkit2png<\/a> is a great tool for taking automatic screenshots of websites. Here’s the project’s description: “With tall or wide pages that would normally require scrolling, it takes screenshots of the whole webpage, not just the area that would be visible in a browser window.”<\/p>\n

Here’s one way to\u00a0use this tool to grab an entire list of URLs. First, make a file containing\u00a0URLs, one per line. Next, simply\u00a0run this (set filename, output directory, and options as needed):<\/p>\n

cat my_pages.txt | xargs webkit2png --delay=1 -F -D ~\/my_pages_images\/<\/pre>\n

The “-F” argument will grab only a fullsize screenshot. There are many options to control sizing, filenames, scaling, and more. Run\u00a0webkit2png –help<\/span>\u00a0for available options.<\/p>\n","protected":false},"excerpt":{"rendered":"

UPDATE: There’s a better tool for this job. View my new post about Pageres. webkit2png is a great tool for taking automatic screenshots of websites. Here’s the project’s description: “With tall or wide pages that would normally require scrolling, it takes screenshots of the whole webpage, not just the area that would be visible in a browser window.” Here’s one way to\u00a0use this tool to grab an entire list of URLs. First, make a file containing\u00a0URLs, one per line. Next, simply\u00a0run this (set filename, output directory, and options as needed): cat my_pages.txt | xargs webkit2png –delay=1 -F -D ~\/my_pages_images\/ The “-F” argument will grab only a fullsize screenshot. There are many options to control sizing, filenames, scaling, and more. Run\u00a0webkit2png –help\u00a0for available options.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[76],"tags":[219,230],"_links":{"self":[{"href":"https:\/\/agileadam.com\/wp-json\/wp\/v2\/posts\/880"}],"collection":[{"href":"https:\/\/agileadam.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/agileadam.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/agileadam.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/agileadam.com\/wp-json\/wp\/v2\/comments?post=880"}],"version-history":[{"count":6,"href":"https:\/\/agileadam.com\/wp-json\/wp\/v2\/posts\/880\/revisions"}],"predecessor-version":[{"id":1347,"href":"https:\/\/agileadam.com\/wp-json\/wp\/v2\/posts\/880\/revisions\/1347"}],"wp:attachment":[{"href":"https:\/\/agileadam.com\/wp-json\/wp\/v2\/media?parent=880"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/agileadam.com\/wp-json\/wp\/v2\/categories?post=880"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/agileadam.com\/wp-json\/wp\/v2\/tags?post=880"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}