Need help compiling crawlee in react
Hi everyone! I'm trying to integrate the crawlee library inside my react app for a social scrape project, but as soon as I import the PlaywrightCrawler module I get the following compile error:
Along with numerous warnings, all of the type:
I am using react 18.2.0 and node 16.19.1 version (>= 16, as specified by the documentation), for clarity here is also my package.json.
I already tried deleting /node_modules and package-lock.json and re-running
npm install
, but the problem persists. Anyone know how to fix? Thx!
package.json:
7 Replies
dependent-tan•3y ago
I want to clarify what exactly you are trying to do. Do you want to run crawlee (node.js env) in a browser app?
typical-coralOP•3y ago
yes, the idea is to run crawlee within web management. the goal is to scrape some social profiles and allow the user to solve captchas when they arise. Am I wrong in the approach?
*web management app
dependent-tan•3y ago
You would need a node js server that runs your crawler, and make api calls to it
typical-coralOP•3y ago
I understand, and how can I solve captchas with this? many thanks in advance
dependent-tan•3y ago
The best case is not getting it at all, it's a bit tedious task to solve captcha. There are paid services that provide api and integration libs. You can also find some open source libraries that aim to solve some types of captcha.
ambitious-aqua•3y ago
Its really not expected approach, actors designed to be executed either in Apify cloud or under your own nodejs server, in turn web apps expected to do API calls either to Apify or your server.
typical-coralOP•3y ago
I switched to this setup successfully, thanks for your support