sad-indigoS
Apify & Crawlee2y ago
1 reply
sad-indigo

How do I add query parameter to globbed links in enqueueLinks?

How do I add a query parameter to globbed links in enqueueLinks? For example I want http://www.foo.com/bar -> http://www.foo.com/bar?qux=1. I tried requestTransform but that seems to transform all requests, even ones that don't match the glob. Do I need to re-check the URL in the requestTransform function and conditionally modify the url? Is there no other way to do this?
Was this page helpful?