Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

How To Take Screenshots In The Browser Using JavaScript

const url2png = require('url2png')('API_KEY', 'PRIVATE_KEY');
const fs = require('fs');

app.get('/screenshot', (req, res) => {
	url2png.readURL(req.query.url, {}).pipe(fs.createWriteStream('screenshot.png'));
	res.json({success: true})
});
Source by hackernoon.com #
 
PREVIOUS NEXT
Tagged: #How #To #Take #Screenshots #In #The #Browser #Using #JavaScript
ADD COMMENT
Topic
Name
5+1 =