CA
Crawlee & Apify6mo ago
graceful-blue

Multiple instance - PlaywrightCrawler, is it possible?

If I am calling const crawler = new PlaywrightCrawler({}) is there any state being shared between the instances?
3 Replies
Hall
Hall6mo ago
Someone will reply to you shortly. In the meantime, this might help:
other-emerald
other-emerald6mo ago
No, there is no state being shared between instances of PlaywrightCrawler when you create a new instance using const crawler = new PlaywrightCrawler({}). Each instance of PlaywrightCrawler operates independently and maintains its own internal state.
graceful-blue
graceful-blueOP6mo ago
I noticed if you add maxRequestsPerCrawl this does impact multiple crawlers i.e. it seems to set a global state

Did you find this page helpful?