js-google-image-scraper

1.0.2 • Public • Published

js-google-image-scraper

GitHub npm version

Scrapes Google for images.

Usage

There is one function, scrape(), which takes the following arguments:

Name Type Description
query string The query you want to search.
limit? number How many URLs to return. (defaults to 1, max of 100)

The function will return an object with an array of URLs.

Examples

let images = await scrape("GitHub", 3);

console.log(images)
console.log(images.urls[2])
output:

{ urls: [
	'link1',
	'link2',
	'link3'
] }

"link3"

Readme

Keywords

Package Sidebar

Install

npm i js-google-image-scraper

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

4.8 kB

Total Files

4

Last publish

Collaborators

  • cantisw