google-autocomplete-bulk

1.1.9 • Public • Published

Google autocomplete bulk

google-autocomplete-bulk is a Nodejs package for dealing with Google autocomplete to scrape large quantities of suggestions.

Installation

Use the npm to install google-autocomplete-bulk.

npm i google-autocomplete-bulk

Usage

Without Proxy

const Gauto = require('google-autocomplete-bulk');

async function main() {
  const results = await Gauto('quary', quntity);
  console.log(results);
}

With Proxy

const Gauto = require('google-autocomplete-bulk');

async function main() {
  const results = await Gauto('quary', quntity, 'proxy address', 'proxy port', 'proxy user', 'proxy password');
  console.log(results);
}

Convert data to array

let data = '[test1, test2, test3]';
let array = data
  .trim() 
  .substr(1,data.length-2) 
  .split(',') 
  .map(e=>e.trim()) 
  
console.log(array);

Example

You can study our examples from our repository

Contributing

Please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

Package Sidebar

Install

npm i google-autocomplete-bulk

Weekly Downloads

1

Version

1.1.9

License

MIT

Unpacked Size

5.95 kB

Total Files

4

Last publish

Collaborators

  • chamuditha4