const puppeteer = require('puppeteer');  
const options = {  path:'nytimesheader.png',fullPage:false,clip:{ x:0,y:280,width:1280,height:150} };
	puppeteer.launch().then(async nav => {   
		const page = await nav.newPage();   
		await page.setViewport({ width: 1280, height: 800 
	})  
	await page.goto('https://www.nytimes.com');   
	await page.screenshot(options);   
	await nav.close(); 
});
Author