codelab-bg/track-artwork-image-scraper

从 Google API 获取图片的工具

v0.3.1 2021-02-02 13:01 UTC

This package is auto-updated.

Last update: 2024-09-29 05:43:08 UTC


README

Latest Version Total Downloads

通过 Google API 搜索图片的包 - Custom Search

安装

通过 Composer

$ composer require codelab-bg/track-artwork-images-craper

要求

确保您有 API密钥 - https://console.cloud.google.com/cx 密钥 - https://#/cse/。同时,在 cse 控制台中确保开启 图片搜索搜索整个网络 选项。

用法

$result = TrackArtworkImageScraper::search($query, $page, $perPage, $filters);

页面和过滤器是可选的。有关过滤器的更多信息,请参阅 - https://developers.google.com/custom-search/v1/reference/rest/v1/cse/list

变更日志

请参阅变更日志以获取有关最近更改的更多信息。

测试

$ composer test

贡献

请参阅contributing.md以获取详细信息和待办事项清单。

安全

如果您发现任何与安全相关的问题,请通过作者电子邮件联系,而不是使用问题跟踪器。

鸣谢

许可

许可。请参阅许可文件以获取更多信息。