Proxy

proxy: object;

What's This?

The proxy option allows users to specify the type of proxy the Scraper API should use when making requests, with a focus on residential proxies.

Properties

  • useOnlyResidential: A boolean setting that, when set to true, ensures the Scraper API uses only residential proxies for its requests. Default is false.

How Does it Work?

  • Example: If you configure proxy= {useOnlyResidential: true}, the Scraper will use residential proxies, ensuring your requests appear as if they're coming from a regular user's home connection.

When Should I Use This?

Use the useOnlyResidential setting if you want your scraping activities to mimic the behavior of typical internet users. This can help in accessing websites that might block or limit non-residential traffic or to ensure a higher level of anonymity.

Methods

useOnlyResidentialProxies(boolean) 

Configuration Name: proxy.useOnlyResidential  

Initializing Scraper

const GeonodeScraperApi = require('geonode-scraper-api');
const scraper = new GeonodeScraperApi('<Your_username>', '<Your_password>');

Using Method

scraper.useOnlyResidentialProxies(true);
scraper.scrape('https://example.com/');

Using Configuration Object

const config = { proxy: { useOnlyResidential: true } };
scraper.scrape('https://example.com/', config);