How to download all files from web URL?

折月煮酒 提交于 2019-12-22 18:02:48

问题


I want to get all files from URL. files may be different types of extensions.
How I get all files with webclient object from Website URL. when I open website Url then files listed as below format

  • ...
  • Frame.js
  • MyFile.png
  • Class1.cs

"Files and folder list from web URL"


回答1:


You need to write yourself a very simple web crawler. Google for 'C# web crawler' and you will find a number of blogs with simple implementations such as this one:

How To: Write a Crawler in C#




回答2:


As I can see your platform is Windows. If you are just looking for a tool to download all the files please look at wget in http://unxutils.sourceforge.net/.

A simple usage:

wget -H -r --level=1 -k -p <url>


来源:https://stackoverflow.com/questions/8724960/how-to-download-all-files-from-web-url

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!