Apify and Crawlee Official Forum

C
C-Weed
Offline, last seen 4 months ago
Joined August 30, 2024
main.ts
Plain Text
import { PlaywrightCrawler } from 'crawlee';
import { router } from './routes.js';

const startUrls = [
  11 links
  ...
];

const crawler = new PlaywrightCrawler({
    requestHandler: router,
    maxRequestsPerCrawl: 1,
    maxRequestRetries: 0,
    maxRequestsPerMinute: 16,
    maxConcurrency: 1,
    headless: false,
});

await crawler.run(startUrls);

I've updated route.ts and after npm start everything works fine for the last 10 links but for the first link it is running old deleted code for some reason(confirmed by testing multiple times, editing different things). I tried deleting request queue but same thing happened. I'm at a loss for what is happening.
3 comments
M
P
O
crawler = PlaywrightCrawler(
max_requests_per_crawl=10,
max_request_retries=0,
headless=True,
browser_type='chromium',
)
I want to set 3600ms delay between requests
1 comment
E