如何用curl获取网页logo图片的url

WBOY
Release: 2016-06-13 10:48:50
Original
1395 people have browsed it

怎么用curl获取网页logo图片的url
如题:比如我想获取sina的logo(www.sina.com.cn)该怎么去获取呢???


------解决方案--------------------
css 

探讨

引用:

根据curl获取页面源码,正则匹配不就可以


正则匹配的话前提是他的logo url地址必须要有logo字样,而其他的图标地址没有logo字样?

------解决方案--------------------
探讨
正则匹配的话前提是他的logo url地址必须要有logo字样,而其他的图标地址没有logo字样?
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!