rubber-blueR
Apify & Crawlee3y ago
5 replies
rubber-blue

Download CSV using playwright in an Apify Actor

So I have written some javascript that navigates to and downloads a csv file using playwright with chromium. I am using .saveAs and defining the filepath on my local machine, but not sure how to convert this to work on Apify.

I have tried various things. Everything works except the download.

It is not explicitly clear to me that Apify can even save a .csv file. I see mention that it is possible to save files to the key-value-store, but i remain unsure.

Can anyone confirm wether or not I can expect to download and save a .csv file somewhere from an apify actor, and if so, a hint as to the easiest way to do so?

Additionally, the most ideal scenario is that the csv file ends up on a google drive folder.
Was this page helpful?