Skip to content

take screenshots on every pages(with a list) in different resolutions

Notifications You must be signed in to change notification settings

trust2065/screenshot-website

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This tool will take screenshots and save it on your local disk

the script is base on puppeteer

https://github.com/GoogleChrome/puppeteer

Giving list of url, list of resolutions, sub-folder name(optional)
and it will save by the name in list that you given.

note: default directory is screenshot/{resolutions}/, you can make it screenshot/{sub-folder-name}/{resolution}/

//example
const urlList = [
            { name: "about", link: "http://www.teaching.com.au/page/mta-about" }
];
const deviceList = [
            { name: "desktop", width: 1360, height: 768 },
            { name: "tablet", width: 768, height: 1024 },
            { name: "mobile", width: 360, height: 640 }
];

//optional
//const subPath = "dev";

About

take screenshots on every pages(with a list) in different resolutions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published