Using crawlee in an existing project #2178
-
Hey Everyone, I followed the crawlee tutorial and was very happy as after getting everything to work it was just what I was looking for to test out some stuff on my existing solution. However I have run into an issue when trying to implement crawlee on my existing api. Basically, I already have an api set up which was created with nodeJS and my router is already being used as the below examples:
Now as you can see I am handling my router using express. I created an endpoint which calls a js file containing the crawlee implementation as below:
However when I call the endpoint which calls the spec method, seems that this causes my api to restart. Below is the output I am getting:
Has anybody encountered this issue before and how would I go about solving it? Thanks :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Crawlee will write its state into to Try doing this: |
Beta Was this translation helpful? Give feedback.
Crawlee will write its state into to
storage
directory (request queue as well as the dataset and kvs records), and you are probably watching that directory for changes.Try doing this:
https://crawlee.dev/docs/deployment/aws-cheerio