correct-apricot•13mo ago
Cheerio Fingerprint
Is there a way to use fingerprints with the Cheerio crawler? I need it to send Firefox headers. It's currently sending chromium ones
6 Replies
correct-apricotOP•13mo ago
or can i remove some headers?
extended-salmon•13mo ago
Hi @Tay, to use only Firefox headers, you can modify gotScraping headerGeneratorOptions in preNavigationHooks:
https://github.com/apify/got-scraping?tab=readme-ov-file#headergeneratoroptions
GitHub
GitHub - apify/got-scraping: HTTP client made for scraping based on...
HTTP client made for scraping based on got. Contribute to apify/got-scraping development by creating an account on GitHub.
correct-apricotOP•13mo ago
Thanks, is it possible to remove a header after generation?
@Tay just advanced to level 1! Thanks for your contributions! 🎉
correct-apricotOP•13mo ago
i can add extra headers by appending to
request.headers
in preNavigationHooks but not remove itDid you try to make it undefined ? e.q. request.headers['my-header'] = undefined