Apify

Apify and Crawlee Official Forum

b
F
A
J
A

save HTML file using crawlee

Has anybody tried downloading the HTML file of the URL using Crawlee? Was wondering if Crawlee has a capacity of downloading the HTML file of the URL since I've just been using Crawlee and really loving the experience.
E
M
N
4 comments
You can download HTML content of a webpages using Crawlee
Thanks for this awesome answer! Was wondering if Crawlee has examples on how to save it to a file?
You can use the KeyValueStore: https://crawlee.dev/api/core/class/KeyValueStore. E.g., with Cheerio:
Plain Text
await store.setValue('my-html', $.html('html'), { contentType: 'text/html' });
Add a reply
Sign up and join the conversation on Discord
Join