12 lines
284 B
TypeScript
12 lines
284 B
TypeScript
import { JSDOMCrawler, ProxyConfiguration } from 'crawlee';
|
|
|
|
const proxyConfiguration = new ProxyConfiguration({ /* opts */ });
|
|
|
|
const crawler = new JSDOMCrawler({
|
|
proxyConfiguration,
|
|
async requestHandler({ proxyInfo }) {
|
|
console.log(proxyInfo);
|
|
},
|
|
// ...
|
|
});
|