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