sanzy-ss-api
Version:
Package ssweb API with puppeteer and google chrome
101 lines (78 loc) • 1.65 kB
Markdown
`Package ssweb API with puppeteer and google chrome`
`npm i ss-api`
```js
const api = require("ss-api")
```
```js
(async () => {
var result = await api.desktop({ url: 'https://google.co.id' })
console.log(result)
})()
```
<img src="https://telegra.ph/file/221e5fd399fbc8c9696b2.png"></img>
```js
{
status: 200,
creator: 'sanzy',
result: 'https://uploader.sanzyy.com/file/1TPWtb5XqO.png'
}
```
```js
(async () => {
var result = await api.desktop({ url: 'https://google.co.id/search?q=Caliph%20Rest%20Api', fullpage: true })
console.log(result)
})()
```
<img src="https://telegra.ph/file/a661907259df2d35ebd3c.png"></img>
```js
{
status: 200,
creator: 'Sanzy',
result: 'https://uploader.sanzyy.com/file/KgDwrs8WHh.png'
}
```
```js
(async () => {
var result = await api.handphone({ url: 'https://google.co.id' })
console.log(result)
})()
```
<img src="https://telegra.ph/file/517b8219ca53433c73b40.png"></img>
```js
{
status: 200,
creator: 'Sanzy',
result: 'https://uploader.sanzyy.com/file/scd2djBxkG.png'
}
```
```js
(async () => {
var result = await api.handphone({ url: 'https://google.co.id/search?q=Caliph%20Rest%20Api', fullpage: true })
console.log(result)
})()
```
<img src="https://uploader.caliph.my.id/file/GSXWUwB3nJ.png"></img>
```js
{
status: 200,
creator: 'Sanzy',
result: 'https://uploader.sanzyy.com/file/wxP42avOdq.png'
}
```