https://github.com/shershen08/first-image-search-load
Simple module that loads the first image from Google image search on query
https://github.com/shershen08/first-image-search-load
Last synced: 5 months ago
JSON representation
Simple module that loads the first image from Google image search on query
- Host: GitHub
- URL: https://github.com/shershen08/first-image-search-load
- Owner: shershen08
- Created: 2015-09-09T07:56:41.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-09-13T14:59:32.000Z (almost 10 years ago)
- Last Synced: 2025-02-18T22:37:42.599Z (5 months ago)
- Language: JavaScript
- Size: 137 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Description
Simple module that loads the first image from Google image search on query
Module usues url : ```https://www.google.nl/search?tbm=isch&q=```
Request returns A+ promises, thanks to [q](https://github.com/kriskowal/q) module.Npm package [first-image-search-load](https://www.npmjs.com/package/first-image-search-load), to install:
```npm i first-image-search-load```## API
```saveFirstImage(queryString, fileNameAndPath)``` - Saves the first image to disk as a file
```getFirstImageURL(queryString)``` - Returns URL of the first image in the search results
```getImagesArray(queryString)``` - Returns array of URLs of the images in the search results
## Dependencies
- [cheerio](https://github.com/cheeriojs/cheerio)
- [request](http://github.com/request/request)
- [q](https://github.com/kriskowal/q)