Apify and Crawlee Official Forum

Updated 4 months ago

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 });
O
L
2 comments
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?
Keep in mind you need a paid account to use Apify proxy on your system
Add a reply
Sign up and join the conversation on Discord