1cool / spider-icon
通过URL爬取网站的图标
1.1
2020-10-13 09:04 UTC
Requires
- php: ^7.0
- guzzlehttp/guzzle: ^6.3
- symfony/dom-crawler: ^5.1
This package is auto-updated.
Last update: 2024-09-11 15:08:51 UTC
README
spider-icon
通过URL爬取网站的图标
使用教程
- 安装
composer require 1cool/spider-icon
- 使用指南
<?php use SpiderIcon\Spider; Spider::request('your url');
结果
- 如果网站没有图标,将返回空数组
[]
- 如果网站有图标,将返回数组
['type'=>'url','content'=>'url']
type means result type. it possible value: url and base64
content means result content. it possible value:icon's url and icon's base64