简体   繁体   English

如何从网址下载所有文件?

[英]How to download all files from web URL?

I want to get all files from URL. 我想从URL获取所有文件。 files may be different types of extensions. 文件可以是不同类型的扩展名。
How I get all files with webclient object from Website URL. 我如何从网站URL获取带有webclient对象的所有文件。 when I open website Url then files listed as below format 当我打开网站Url然后文件列出如下格式

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

"Files and folder list from web URL" “来自网址的文件和文件夹列表”

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: 谷歌的'C#网络爬虫',你会发现许多博客与这个简单的实现:

How To: Write a Crawler in C# 如何:在C#中编写一个Crawler

As I can see your platform is Windows. 我可以看到你的平台是Windows。 If you are just looking for a tool to download all the files please look at wget in http://unxutils.sourceforge.net/ . 如果您只是在寻找下载所有文件的工具,请访问http://unxutils.sourceforge.net/中的wget。

A simple usage: 一个简单的用法:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM