Apify and Crawlee Official Forum

Updated last month

Multiple instance - PlaywrightCrawler, is it possible?

At a glance
If I am calling const crawler = new PlaywrightCrawler({}) is there any state being shared between the instances?
E
J
2 comments
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.
I noticed if you add maxRequestsPerCrawl this does impact multiple crawlers i.e. it seems to set a global state
Add a reply
Sign up and join the conversation on Discord