Extractor settings

The plugin integrates third-party scraping services to help bypass IP restrictions or blocks:

Register with the service to obtain your API key.

Go to Affiliate Egg > Settings > Extractor Settings, enter your API keys, and add the domains (separated by commas) where you want to send requests through the service.

Custom parameters for scraping services

To enable these filters, paste the code into the functions.php file of your active theme (preferably a child theme).

// Add premium parameter to ScrapingDog requests
add_filter('affegg_parse_url_scrapingdog', function($url) {
    return add_query_arg('premium', 'true', $url);
}, 10, 1);

// Add country parameter to ScrapingDog requests
add_filter('affegg_parse_url_scrapingdog', function($url) {
    return add_query_arg('country', 'au', $url);
}, 10, 1);

// Add country_code parameter to ScraperAPI requests
add_filter('affegg_parse_url_scraperapi', function($url) {
    return add_query_arg('country_code', 'de', $url);
}, 10, 1);

Last updated

Was this helpful?