14 lines
286 B
TypeScript
14 lines
286 B
TypeScript
import { PlaywrightCrawler, ProxyConfiguration } from 'crawlee';
|
|
|
|
const proxyConfiguration = new ProxyConfiguration({
|
|
proxyUrls: [
|
|
'http://proxy-1.com',
|
|
'http://proxy-2.com',
|
|
],
|
|
});
|
|
|
|
const crawler = new PlaywrightCrawler({
|
|
proxyConfiguration,
|
|
// ...
|
|
});
|