ssweb-api
Package ssweb API with puppeteer and google chrome
Installation
Npm
npm i ss-api
Require
const api = require("ss-api")
Docs
Ssweb Desktop
(async () => {
var result = await api.desktop({ url: 'https://google.co.id' })
console.log(result)
})()
Result
Result JSON
{
status: 200,
creator: 'sanzy',
result: 'https://uploader.sanzyy.com/file/1TPWtb5XqO.png'
}
Ssweb Desktop (Full Page)
(async () => {
var result = await api.desktop({ url: 'https://google.co.id/search?q=Caliph%20Rest%20Api', fullpage: true })
console.log(result)
})()
Result
Result JSON
{
status: 200,
creator: 'Sanzy',
result: 'https://uploader.sanzyy.com/file/KgDwrs8WHh.png'
}
Ssweb Handphone
(async () => {
var result = await api.handphone({ url: 'https://google.co.id' })
console.log(result)
})()
Result
Result JSON
{
status: 200,
creator: 'Sanzy',
result: 'https://uploader.sanzyy.com/file/scd2djBxkG.png'
}
Ssweb Handphone (Full Page)
(async () => {
var result = await api.handphone({ url: 'https://google.co.id/search?q=Caliph%20Rest%20Api', fullpage: true })
console.log(result)
})()
Result
Result JSON
{
status: 200,
creator: 'Sanzy',
result: 'https://uploader.sanzyy.com/file/wxP42avOdq.png'
}