like-gold•4y ago
custom CheerioCrawler User-Agent?
hi, could anyone show me an example of CheerioCrawler User-Agent? I had tried
preNavigationHooks but got a stranger error
but got error: RequestError: No headers based on this input can be generated.
I had tried use this options with header-generator then it works, but don't work with CheerioCrawler hooks7 Replies
rival-black•4y ago
How about using the search function in the forum? https://discord.com/channels/801163717915574323/1022116407053394011
Like this:
like-goldOP•4y ago
thanks, I had searched before. My Question is a little differnce.
1. I want to use
1. I want to use
useHeaderGenerator so the user-agent will change each crawle to avoid block
2. it seems that is a bug of headerGeneratorOptions ?absent-sapphire•4y ago
You can do this with fingerprint-suite (https://github.com/apify/fingerprint-suite/).
Like this
Attached POC:
cheerio_crawler with this.@LeMoussel just advanced to level 2! Thanks for your contributions! 🎉
like-goldOP•4y ago
@LeMoussel thanks, I had use
header-generator and it works. But my question is why built-in headerGeneratorOptions fail, did I miss something?@petrpatek. Pls check here why the header generator fails to generate