This project is used to capture screenshots from Github and Behance. It uses Puppeteer
plugin to capture screenshots through a headless browser.
- Clone the repository
- Run
npm install
to install the dependencies - Run
npm start
to run the test.js file
Note: You can change the URL in the test.js file to capture screenshots for different usernames.
const {captureGithubScreenshots } = require('./app.js');
captureGithubScreenshots(
'https://github.com/N1ghtHunter', // Github URL
'./screenshots', // Screenshots folder path
{
screenshotCount: 3, // Number of screenshots to be taken
sortBy: 'stars' // Sort by 'stars', 'latest', or 'name'
}
);
Note: config object is optional. If not provided, it will take the default values.
You should screen shots in the screenshots
folder.
Shout out to https://github.com/N1ghtHunter for the implementation.