1.0.2 • Published 1 year ago

js-google-image-scraper v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

js-google-image-scraper

GitHub npm version

Scrapes Google for images.

Usage

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

NameTypeDescription
querystringThe query you want to search.
limit?numberHow 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"
1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago