如何自动将文件从网站下载到文件夹 [英] How to automatically download files from a website to a folder

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

问题描述

从网站进行自动下载文件(即定期更新的文件)并将这些文件放在Windows计算机上的本地文件夹中的最佳方法是什么?

What would be the best way to do automatic download files (i.e files that are regularly being updated) from a website, and put those files in a local folder on my windows machine?

您使用的是Ajax,还是普通的jQuery足够好?

Do you use Ajax, or is plain jQuery good enough?

有人可以向我暗示正确的方向吗?

Can anyone hint me in the right direction?

谢谢

推荐答案

只要拥有文件的url,就可以发出GET请求并下载文件.

As long as you have the url of the files, you can make an GET request and download files.

可以使用不带Jquery的Ajax或简单的HTTP程序(发出请求并下载它)来发出此GET请求.

This GET request can be made using Ajax w/o Jquery or a simple HTTP program which make the requests and downloads it.

还提供可免费使用的程序,例如wget.

Freely usable programs such as wget are also present.

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

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