quickest-silver
quickest-silver2y ago

Saving cookies

Hi, I am building a private actors for my use case which involves logins. I need to save the cookies. What is the best way to save the cookies and use it later within tha actor?
2 Replies
Mantisus
Mantisus2y ago
I think you could use key-value storage. Judging by the description there is no strict limit on the length of value - https://docs.apify.com/platform/storage/key-value-store This way you can convert cookies into a convenient string value and store it in value
Key-value store | Platform | Apify Documentation
Store anything from Actor or task run results, JSON documents, or images. Learn how to access and manage key-value stores from Apify Console or via API.
sunny-green
sunny-green2y ago
hey @Saimun, you can stringify and save them as json

Did you find this page helpful?