Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- async function ssweb(url) {
- const payload = {
- tkn: 125, //idk
- d: 3000, //idk maybe delay (useful when the site has animation. wait 3s to caputre)
- u: encodeURIComponent(url), //encoded url value
- fs: 0, //fullscreen 0=false, 1=true, (if true it will capture all hight of the website, height value will be ignored)
- w: 1920, //width
- h: 1080, //height
- s: 100, //scale
- z: 100, //zoom
- f: "jpg", //output image format
- rt: "jweb"//idk
- }
- const r = await fetch("https://api.pikwy.com/?" + new URLSearchParams(payload));
- if (!r.ok) throw Error (`${r.status} ${r.statusText} | ${await r.text()}`)
- return await r.json()
- }
- ssweb("https://www.google.com")
- .then(console.log)
- .catch(console.log)
Advertisement
Add Comment
Please, Sign In to add comment