1.0.3 • Published 2 months ago

qserp v1.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
2 months ago

qserp

This module provides functions to perform Google Custom Searches using the Google API.

Installation

npm install qserp

Environment Variables

Before using the module, set the following environment variables:

Usage

const { googleSearch, getTopSearchResults } = require('qserp');

// Example: Search for a single query
googleSearch('Node.js tutorials').then(results => console.log(results));

// Example: Get top search results for an array of queries
getTopSearchResults(['Node.js', 'Express.js']).then(urls => console.log(urls));

Testing

To run the included tests:

npm test

Make sure you've set the required environment variables before running tests.

License

ISC

1.0.3

2 months ago

1.0.2

2 months ago

1.0.1

2 months ago