Download PDF file from URL?
Does someone know of a simple npm library to download files from a URL in Javascript/TypeScript?
7 Replies
ambitious-aqua•3y ago
I actually want to know this as well, seems like it's giving me an error on how other formats are only supported application/pdf is not supported
variable-limeOP•3y ago
I tried using axiom, http.get, clicking on the download button. Nothing works
variable-limeOP•3y ago
Maybe this will work https://crawlee.dev/docs/examples/basic-crawler
Basic crawler | Crawlee
This is the most bare-bones example of using Crawlee, which demonstrates some of its building blocks such as the BasicCrawler. You probably don't need to go this deep though, and it would be better to start with one of the full-featured crawlers
ambitious-aqua•3y ago
variable-limeOP•3y ago
Thanks I tried your suggestion but unfortunately it wont compile
I fixed it with code
rival-black•3y ago
do not forget to add
additionalMimeTypes
in crawler options then you can handle files with cheerio crawlervariable-limeOP•3y ago
Thanks