Apify and Crawlee Official Forum

Home
Members
sclear.
s
sclear.
Offline, last seen 4 months ago
Joined August 30, 2024
Is it possible to use playwright expect in an apify actor? Currently if I try to do something like:
import { expect } from 'playwright';
I am told playwright does not provide an export called 'import'.
2 comments
H
A
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.
5 comments
s
H