Apify Discord Mirror

Updated 20 hours ago

Use an HTTPS agent to enforce TLS 1.3 in got-scraping/CheerioCrawler

Is there a way to change tls version when scraping with CheerioCrawler?
f
1 comment
hi! you can edit https options in preNavigationHooks, so you could try this:
Plain Text
        preNavigationHooks: [
            async (crawlingContext, opts: OptionsInit) => {
                opts ??= {};
                opts.https ??= {};
                opts.https.minVersion = 'TLSv1.3';
}
]
Add a reply
Sign up and join the conversation on Discord