ssweb-api
Version:
Package ssweb API with puppeteer and google chrome
110 lines (86 loc) • 1.91 kB
Markdown
`Package ssweb API with puppeteer and google chrome`
ID</br>
Jika Ada Bug, Silahkan Buat [Issues](https://github.com/Caliph91/ssweb-api/issues/new)
EN</br>
If there are bugs, please create [Issues](https://github.com/Caliph91/ssweb-api/issues/new)
`npm i github:caliph91/ssweb-api`
`npm i ssweb-api`
```js
const api = require("ssweb-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: 'Caliph',
result: 'https://uploader.caliph.my.id/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: 'Caliph',
result: 'https://uploader.caliph.my.id/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: 'Caliph',
result: 'https://uploader.caliph.my.id/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: 'Caliph',
result: 'https://uploader.caliph.my.id/file/wxP42avOdq.png'
}
```