Another talk about getting the website icons icon

Source: Internet
Author: User

The previous article discussed how to get the website icon method, which is obtained by the combination of direct fetch and HTML parsing from the root directory, and gives the corresponding code example. This article to discuss a more out-of-the-box method, this method is found from 360 navigation page, click on the Navigation page to add a URL, will pop up a dialog to add a URL, click 126 mailbox, you can see 126 mailboxes and icons ran to the top. Looking at network monitoring, you can see that the Request URL is Http://cdn.website.h.qhimg.com/index.php?domain=www.126.com,Request method is get, Obviously the direct request URL should be able to get the icon.

  

Take the blog Park website test, in the browser input http://cdn.website.h.qhimg.com/index.php?domain=www.cnblogs.com, sure enough, blog Park icon appears, tried a lot of commonly used URLs, can get the icon, the effect should be possible.

Try again below to get the icon of the hook net, http://cdn.website.h.qhimg.com/index.php?domain=www.lagou.com, unfortunately, the icon does not appear. This method does not guarantee 100% success, some sites are still not, the default returns an asterisk. Again such as www.sina.com also can not get, www.sina.com.cn will be able to get.

If the site behind a path is also not get, for example, said: Http://cdn.website.h.qhimg.com/index.php?domain=www.cnblogs.com/luguo3000/. Can be combined with the method of the previous article, the two methods of complementary. The success rate will be a little higher.

In fact, hao123 Web site navigation, can also get the icon, but the method to be more complex, not like 360 navigation so straightforward. So it's useful to know how to get things done before you do something, and a lot of things like these big companies can be used directly.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.