Crawlee in Convex Action
Hi, I'm trying to run Crawlee (an open source web scraping library) in a Convex action. I was able to get my action to deploy by using the node runtime and specifying crawlee and playwright as external packages
However, when I run my action, I'm seeing this error:
Any thoughts or advice on how to troubleshoot?
4 Replies
Here is my action code:
This code is essentially the template for Playwright + Typescript provided by crawlee, adapted to be in a Convex action, with some slight adjustments based on documentation of deploying on an AWS lambda https://crawlee.dev/docs/deployment/aws-cheerio
Cheerio on AWS Lambda | Crawlee
Locally, we can conveniently create a Crawlee project with npx crawlee create. In order to run this project on AWS Lambda, however, we need to do a few tweaks.
Unfortunately, playwright is known unsupported in the convex action environment(s). here's a more detailed thread: https://discord.com/channels/1019350475847499849/1196023188421881908/1196023188421881908
Ah, I see. Thanks. Any plans to support it in the future?
we do plan to support more sophisticated "build steps" for action environments, and that will probably help -- ultimately there are probably system libraries missing here to make e.g. chromium able to function