deep-jade•17mo ago
how to make follow_redirects=false in CheerioCrawler
How to disable url redirects in cheerio crawler
4 Replies
Try to play around with PreNavigationHooks:
there must be the way via gotOptions
https://crawlee.dev/api/next/cheerio-crawler/interface/CheerioCrawlerOptions#preNavigationHooks
and got has needed option:
https://github.com/sindresorhus/got/blob/main/documentation/2-options.md#followredirect
deep-jadeOP•17mo ago
@Oleg V. Could you please provide me an example on how i can call the got inside preNaviigationHooks beacuse i am not getting any suitable options that can be passed through gotOptions for redirect
deep-jadeOP•17mo ago
Thanks @Oleg V. It worked. Appreciate it