node-website-scraper icon indicating copy to clipboard operation
node-website-scraper copied to clipboard

can i crawl pdf?

Open cucr opened this issue 8 years ago • 1 comments

  • website-scraper version:

Please provide your full options object:

Options



What is expected result?

What is actual result?

cucr avatar Jul 24 '18 03:07 cucr

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'}],

s0ph1e avatar Jul 24 '18 08:07 s0ph1e