How to download all files from web URL?

2019-05-20 06:45发布

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"

2条回答
祖国的老花朵
2楼-- · 2019-05-20 07:24

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#

查看更多
The star\"
3楼-- · 2019-05-20 07:30

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>
查看更多
登录 后发表回答