-
Notifications
You must be signed in to change notification settings - Fork 13
Description
The proxy we use has this format:
https://core-residential.evomi-proxy.com:1001:username:password
I'm not able to get this sample code to work with the username, password, proxy, URL format. Do you know how best to change this, to make it work?
import { GoogleSearch, SearchOptions } from 'google-search-ts';
// Basic search
const results = await GoogleSearch.search('nodejs typescript');
// Search with options
const options: SearchOptions = {
numResults: 20, // Number of results to return
lang: 'en', // Language for search results
safe: 'active', // SafeSearch setting ('active' or 'off')
region: 'US', // Region for search results
start: 0, // Starting position for pagination
unique: true, // Remove duplicate URLs
proxy: 'http://proxy.example.com:8080', // Optional proxy
timeout: 5000 // Request timeout in milliseconds
};
const resultsWithOptions = await GoogleSearch.search('nodejs typescript', options);
// Each result contains:
// {
// url: string; // The URL of the search result
// title: string; // The title of the search result
// description: string; // The description/snippet of the search result
// }