Huge News!Announcing our $40M Series B led by Abstract Ventures.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
  • Socket score

Version published
Maintainers
1
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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc