1.0.0 • Published 11 months ago

getscreenshot.js v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
11 months ago

Website screenshot getter. (No api key, No limit, 100% free)


Example

const {
sswebA
} = require('getscreenshot.js');
const getRandom = (ext) => {
	return `${Math.floor(Math.random() * 10000)}${ext}`
}

//await sswebA('websiteurl', fullss(true/false), 'desktop/tablet/phone')
const res = await sswebA('https://github.com/vihangayt0',false,'desktop');
let namefile = getRandom('') + '.jpg'
fs.writeFileSync(namefile, res);
await conn.sendMessage(from, { image: fs.readFileSync(namefile), caption: '' }, { quoted: mek })