
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
outscraper
Advanced tools
The library provides convenient access to the Outscraper API. Allows using Outscraper's services from your code. See https://outscraper.com for details.
The library provides convenient access to the Outscraper API from applications written in server-side JavaScript. Allows using Outscraper's services from your code.
Install the package with:
npm install outscraper --save
# Or
yarn add outscraper
const Outscraper = require('outscraper');
// Or using ES modules:
import Outscraper from 'outscraper';
let client = new Outscraper('SECRET_API_KEY');
Link to the profile page to create the API key
// Search for businesses in specific locations:
client.googleMapsSearch(['restaurants brooklyn usa'], limit=20, language='en', region='us').then(response => {
console.log(response);
});
// Or using ES modules and async/await:
(async () => {
const response = await client.googleMapsSearch(['restaurants brooklyn usa'], limit=20, language='en', region='us');
console.log(response);
})();
// Get data of the specific place by id
client.googleMapsSearch(['rChIJrc9T9fpYwokRdvjYRHT8nI4'], language='en').then(response => {
console.log(response);
});
// Get reviews of the specific place by id
client.googleMapsReviews(['rChIJrc9T9fpYwokRdvjYRHT8nI4'], reviewsLimit=20, language='en').then(response => {
console.log(response);
});
// Get reviews of the specific place by id using async mode
client.googleMapsReviews(
['rChIJrc9T9fpYwokRdvjYRHT8nI4'],
reviewsLimit=20,
limit=1,
sort='most_relevant',
skip=0,
start=null,
cutoff=null,
cutoffRating=null,
ignoreEmpty=false,
language='en',
region=null,
reviewsQuery=null,
lastPaginationId=null,
asyncRequest=true // Enable async mode
).then(response => {
console.log('Request ID:', response.requestId);
// You can use the requestId to check the status of the request later
client.getRequestArchive(response.requestId).then(status => {
console.log('Request Status:', status);
});
});
// Search contacts from website
client.emailsAndContacts(['outscraper.com']).then(response => {
console.log(response);
});
Bug reports and pull requests are welcome on GitHub at https://github.com/outscraper/outscraper-node.
FAQs
The library provides convenient access to the Outscraper API. Allows using Outscraper's services from your code. See https://outscraper.com for details.
We found that outscraper 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.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.