1024programmer Java How to use curl to get the url of a web page logo image

How to use curl to get the url of a web page logo image

How to use curl to get the url of a webpage logo image
As in the title: For example, if I want to get the logo of Sina (www.sina.com.cn), how should I get it? ? ?

——Solution——————–
css

Discussion

Quote:

Get the page source code based on curl, Isn’t it possible to match with a regular pattern

If it matches with a regular pattern, the premise is that its logo url address must have the word logo, but other icon addresses do not have the word logo?

——Solution——————–

Discuss

For regular matching, the premise is that his logo url address must have the word logo, but other icon addresses do not have the word logo?

This article is from the internet and does not represent1024programmerPosition, please indicate the source when reprinting:https://www.1024programmer.com/how-to-use-curl-to-get-the-url-of-a-web-page-logo-image-3/

author: admin

Previous article
Next article

Leave a Reply

Your email address will not be published. Required fields are marked *

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: 34331943@QQ.com

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索