alpha-ssweb-api

0.0.1 • Public • Published

ssweb-api

Package ssweb API with puppeteer and google chrome

Note

ID Jika Ada Bug, Silahkan Buat Issues

EN If there are bugs, please create Issues

Installation

Latest

npm i github:caliph91/ssweb-api

Npm

npm i ssweb-api

Require

const api = require("ssweb-api")

Docs

Ssweb Desktop

(async () => {
var result = await api.desktop({ url: 'https://google.co.id' })
console.log(result)
})()

Result

Result JSON

{
  status: 200,
  creator: 'Caliph',
  result: 'https://uploader.caliph.my.id/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: 'Caliph',
  result: 'https://uploader.caliph.my.id/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: 'Caliph',
  result: 'https://uploader.caliph.my.id/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: 'Caliph',
  result: 'https://uploader.caliph.my.id/file/wxP42avOdq.png'
}

/alpha-ssweb-api/

    Package Sidebar

    Install

    npm i alpha-ssweb-api

    Weekly Downloads

    1

    Version

    0.0.1

    License

    none

    Unpacked Size

    10.1 kB

    Total Files

    11

    Last publish

    Collaborators

    • obasprom