我怎样才能获得所有页面图像? [英] How Can I Get All Page Images?

查看:96
本文介绍了我怎样才能获得所有页面图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何阅读HTML并获取只有图像并在欲望页面上显示。



我该怎么做?请尽快帮助我。



等待您的快速回复,提供更好,更轻松的解决方案。



谢谢。

How can I read HTML and get Only images and display on desire pages.

How can I Do that? Please help me asap.

Waiting for your quick reply with better and easy solution.

Thanks.

推荐答案

基本上,这是 Web抓取的典型问题: http://en.wikipedia.org/wiki/Web_scraping [ ^ ]。



另见我过去的答案:

从网页上获取特定数据 [ ^ ],

如何从其他网站获取数据 [ ^ ]。



我建议使用HTML解析,但对于这样的简单的问题,您可以使用页面源上的正则表达式搜索提取所需的元素。另请参阅我对问题的评论:CSS中可以引用一些图像。



-SA
Basically, this is a typical problem of Web scraping: http://en.wikipedia.org/wiki/Web_scraping[^].

See also my past answers:
get specific data from web page[^],
How to get the data from another site[^].

I advised to use HTML parsing, but for such a simple problem you can extract required element using just Regex search on the page source. See also my comment to the question: some images can be referenced in CSS.

—SA


这篇关于我怎样才能获得所有页面图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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