wolfyflutter

ssweb wip

Nov 9th, 2025
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. async function ssweb(url) {
  2.  
  3. const payload = {
  4. tkn: 125, //idk
  5. d: 3000, //idk maybe delay (useful when the site has animation. wait 3s to caputre)
  6. u: encodeURIComponent(url), //encoded url value
  7. fs: 0, //fullscreen 0=false, 1=true, (if true it will capture all hight of the website, height value will be ignored)
  8. w: 1920, //width
  9. h: 1080, //height
  10. s: 100, //scale
  11. z: 100, //zoom
  12. f: "jpg", //output image format
  13. rt: "jweb"//idk
  14. }
  15.  
  16. const r = await fetch("https://api.pikwy.com/?" + new URLSearchParams(payload));
  17. if (!r.ok) throw Error (`${r.status} ${r.statusText} | ${await r.text()}`)
  18.  
  19. return await r.json()
  20. }
  21.  
  22. ssweb("https://www.google.com")
  23. .then(console.log)
  24. .catch(console.log)
Advertisement
Add Comment
Please, Sign In to add comment