vicious-gold•2y ago
Using `transformRequestFunction` in `enqueueLinks` overrides `label`
I am using
enqueueLinks
to pass some URLs to another handler. This works fine when I do:
but as soon as I add a transformRequestFunction
the label is overridden and it queues the links back to the handler from which is is being queued:
Why is the label
being overridden when the only property of request
being changed is the zoomTarget
?4 Replies
I assume the
userData
is the current userData? That might be a bug in Crawlee since the label is piped theough userData. Can you please copy this to https://github.com/apify/crawlee/issues?GitHub
Issues · apify/crawlee
Crawlee—A web scraping and browser automation library for Node.js that helps you build reliable crawlers. Fast. - Issues · apify/crawlee
vicious-goldOP•2y ago
Thanks, have submitted here: https://github.com/apify/crawlee/issues/2247
GitHub
label
being overridden in enqueueLinks
when using `transformReq...Which package is this bug report for? If unsure which one to select, leave blank @crawlee/core Issue description I am using enqueueLinks to pass some URLs to another handler. This works fine when I...
vicious-goldOP•2y ago
This was resolved - for anyone else coming across this,
request.label
is a shortcut for request.userData.label
so the transform function was overwriting the label, but I couldn't see it because I thought label was a separate property.eastern-cyan•2y ago
Nice!
I'm actually experiencing another issue with same-domain strategy not working as expected and I wonder if it's becuase I'm also overriding w/ transformRequestFunction