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