Home >Backend Development >PHP Tutorial >如何用curl获取网页logo图片的url

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

WBOY
WBOYOriginal
2016-06-13 10:48:501436browse

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


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

探讨

引用:

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


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

------解决方案--------------------
探讨
正则匹配的话前提是他的logo url地址必须要有logo字样,而其他的图标地址没有logo字样?
Statement:
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