sunny-green
sunny-green2y ago

Is there a way to use both PlaywrightCrawler and CheerioCrawler?

I am getting PDF links using PlaywrightCrawler. I would like to download those PDF links, but when I use sendRequest with it, I got the error waiting until "load". I suspect this is because of PlaywrightCrawler, it seems that I need to use CheerioCrawler? Is this correct? If so, how do I use both?
3 Replies
sunny-green
sunny-greenOP2y ago
I found out the error. It was because Playwright was waiting for navigation. I should use the skipNavigation instead but I am curious, if there is actually away to use different kinds of crawlers at one run
Lukas Krivka
Lukas Krivka2y ago
Usually you want to use one crawler after the other. If you use them in parallel, you need to assign them unique queues and storage so their state doesn't clash.
sunny-green
sunny-greenOP2y ago
Oh okay, interesting. Thanks Lukas

Did you find this page helpful?