node-website-scraper
node-website-scraper copied to clipboard
can i crawl pdf?
- website-scraper version:
Please provide your full options object:
Options
What is expected result?
What is actual result?
Hi @cucr
Yes, it is possible to download pdf
-
If you want to download some html that contains links to pdfs (usually
<a href="document.pdf">) you can use recursive option and all resources from<a ..>tag will be downloaded -
If you want to download only 1 pdf, you can use its url in urls option to download it
urls: [{url: 'http://example.com/document.pdf', filename: 'document.pdf'}],