I want to use apify proxy configuration from local app.

I'm trying scrape some website using puppeteerCrawler from my local machine I want to configure apify proxy for this project how do I use it. right now my code looks like this import {Actor} from 'apify' await Actor.init(); const proxyConfiguration = await Actor.createProxyConfiguration({ password: "password" }); const proxyUrl = await proxyConfiguration.newUrl('my_scraping'); const browser = await launchPuppeteer({ proxyUrl });
2 Replies
conscious-sapphire
conscious-sapphire3y ago
Hi. Your code seems to be fine. Just one thing. proxyConfiguration.newUrl() accepts session_id :
https://docs.apify.com/sdk/js/reference/class/ProxyConfiguration#newUrl What is the issue with it? Do you see any errors during the run?
adverse-sapphire
adverse-sapphire2y ago
Keep in mind you need a paid account to use Apify proxy on your system

Did you find this page helpful?