deep-jade•16mo 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
deep-jadeOP•16mo ago
or can i remove some headers?
adverse-sapphire•16mo 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.
deep-jadeOP•16mo ago
Thanks, is it possible to remove a header after generation?
@Tay just advanced to level 1! Thanks for your contributions! 🎉
deep-jadeOP•16mo 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