从网站上下载的所有PDF文件 [英] Downloading all PDF files from a website

查看:109
本文介绍了从网站上下载的所有PDF文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在C#中的所有下载从网站的PDF文件在Windows桌面应用程序。我有链接到网站,但我现在面临的问题是,PDF文件不在网站上的特定文件夹,但都在分散的。



事情我需要的是在发现所有这些链接,这样我就可以下载它们或其他任何建议,可以帮助我与我的问题的帮助。



多亏了先进的全帮助。


解决方案

  1. 在所有的网页刮

  2. 找到所有的* .PDF网址

  3. 重建他们只需下载:)



请更具体的你想获得所有从HTML页面或整个域的PDF文件?


I need to make a windows desktop application in c# that downloads all the PDFs from a website. I have the link to the website but the problem i am facing is that the PDFs are not in a specific folder on the website but are scattered all over.

The thing i need is help at finding all those links so i can download them or any other advices that could help me with my problem.

Thanks to all help in advanced.

解决方案

  1. Scrape through all the pages
  2. Find all the "*.pdf" URLs
  3. Reconstruct them and simply download :)

Please be more specific are you trying to get all the PDFs from the html page or from the whole domain ?

这篇关于从网站上下载的所有PDF文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆