
Research
Security News
The Growing Risk of Malicious Browser Extensions
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
nodejs-automation
Advanced tools
This Node.js package allows you to search for places using the Google Maps Places API and export the search results to an Excel file. It's useful for quickly gathering information about various places based on keywords and locations.
This Node.js package allows you to search for places using the Google Maps Places API and export the search results to an Excel file. It's useful for quickly gathering information about various places based on keywords and locations.
To use this package, you need to have Node.js installed. You can then install the package via npm:
npm i nodejs-automation
You need a valid Google Maps API Key to use the Google Maps Places API. Set up your API key in a .env
file.
.env
file in the root of your project with the following content:GOOGLE_MAPS_API_KEY=your_google_maps_api_key
Replace your_google_maps_api_key
with your actual API key.
You can use the package in your code like this:
const main = require('nodejs-automation');
const keyword = 'restaurants';
const city = 'New York';
main(keyword, city);
The search results will be saved as an Excel file named <keyword>_in_<city>.xlsx
in the current directory.
For example, if you search for restaurants
in New York
, the file will be named restaurants_in_new_york.xlsx
.
The package uses the following Google Maps APIs:
To avoid exceeding API rate limits, the script adds a 1-second delay between requests for place details.
Example data for a search result:
Name | Address | Description | Rating | Reviews | Phone |
---|---|---|---|---|---|
Example Restaurant | 123 Main St, New York, NY | OPERATIONAL | 4.5 | 120 | +1-234-567-8900 |
Contributions are welcome! Feel free to open an issue or submit a pull request with improvements or bug fixes.
This package is licensed under the MIT License.
If you encounter any issues or have questions, feel free to open an issue on the GitHub repository.
This package uses the Google Maps API, and you are responsible for any associated costs or compliance with the Google Maps Platform Terms of Service.
FAQs
This Node.js package allows you to search for places using the Google Maps Places API and export the search results to an Excel file. It's useful for quickly gathering information about various places based on keywords and locations.
The npm package nodejs-automation receives a total of 3 weekly downloads. As such, nodejs-automation popularity was classified as not popular.
We found that nodejs-automation demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.