google-parser
TypeScript icon, indicating that this package has built-in type declarations

2.1.4 • Public • Published

google-parser

npm version

NPM

Use this library to get a search result from google.

License

MIT

Module load

javascript

let google = require('google-parser');

typescript

import * as google from 'google-parser'

How it works

This module supports only Promise and async / await.

Function list

google.img(searchstring, safeboolean)Promise<IImg[]>
 
google.jpg(searchstring, safeboolean)Promise<IImg[]>
 
google.google(searchstring, safeboolean)Promise<ISearch[]|ISearchError>

Add an optional argument for safe search.

Type

interface IImg {
  img: string,
  url: string,
  name: string
}
 
interface ISearch {
  title: string,
  url: string,
  description: string
}
 
interface ISearchError {
  error: true,
  reson: "antibot"
}

Return

The return is treated as an object. Please refer to the above type.

Developer

달보드레(dalbodeule)npmjs github

Package Sidebar

Install

npm i google-parser

Weekly Downloads

15

Version

2.1.4

License

MIT

Unpacked Size

27.3 kB

Total Files

22

Last publish

Collaborators

  • trusty_people