How to persist the context with Crawlee?
Hey,
so I am fairly new to Crawlee and have spent the better part of two days trying to figure out how to have persistent context when crawling with Crawlee.
I am scraping a website that requires login, and I would like to avoid the overhead of always logging in when a new crawler is ran.
I am able to very easily create and persist the context and cookies in the project root directory without Crawlee, only using PlaywrightCrawler like so:
can anyone point me in the right direction on how to achieve the same with Crawlee?
1 Reply
Hello @robot ,
You may try persist the cookies to the key-value-store and on start of every necessary handler load them back