🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

google-parser

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

google-parser

Get images, general search results from Google.

2.1.4
latest
Source
npm
Version published
Weekly downloads
34
240%
Maintainers
1
Weekly downloads
 
Created
Source

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(search: string, safe: boolean): Promise<IImg[]>

google.jpg(search: string, safe: boolean): Promise<IImg[]>

google.google(search: string, safe: boolean): 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

Keywords

google

FAQs

Package last updated on 03 Nov 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts