/dynamic-html-screenshots

This phantomjs example takes screenshots of html files with dynamically inputted content.

Primary LanguageJavaScriptMIT LicenseMIT

Take screenshots of dynamic html locally

This phantomjs example takes screenshots of html files with dynamically inputted content. There is a json file with tweet data from Twitter. This code will programatically take screenshots of all the tweets using the fake-tweet.html mockup so each one looks like this:

tweet mockup

Install PhantomJs and then run:

phantomjs index.js

This will loop through all the tweets in tweets.json, create a tweet mockup using the time and tweet text and then take a png screenshot which will get saved to /screenshots.