下载完整的网页,其中包括Java中的资源(如图片) [英] download a complete web page including resources (like images) in java
本文介绍了下载完整的网页,其中包括Java中的资源(如图片)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有一种方法可以下载(html)网页及其所有资源(例如图像,CSS).
is there a way to download (html) web page and all it's resources (eg: images,CSS).
我知道如何通过所有相关的标签使用html解析器来做到这一点,但不是简便的方法吗?
I know how to do this using a html parser, by going through all the relevant tags, but isn't there a easy way?
推荐答案
是简单的方法.
困难的方法是编写自己的网络库,html解析器等...
The hard way is to write your own network libraries, html parser etc...
这篇关于下载完整的网页,其中包括Java中的资源(如图片)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文