定制 aminulbd/spider 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

aminulbd/spider

最新稳定版本:0.0.1

Composer 安装命令:

composer require aminulbd/spider

包简介

Grab latest feed from search engine like Google, Bing, WordPress, etc.

README 文档

README

Grab latest feed from search engine like Google, Bing, WordPress, etc.

Installation

Install the package using composer by using this command below.

composer require aminulbd/spider

Usage

Just import \AminulBD\Spider\Spider package and construct it with supported driver and call the find method like as below.

// require '../vendor/autoload.php'; // if you are going with standalone mode.

use AminulBD\Spider\Spider;

$engine = 'wordpress'; // supported: google, bing and wordpress
$config = [
    'base_uri' => 'https://aminul.net/wp-json/wp/', // This is required for wordpress.
];

$spider = new Spider($engine, $config);

$finder = $spider->find(['q' => 'WordPress']);
$results = $finder->next(); // Here is your results. 

print_r($results);

统计信息

  • 总下载量: 12
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 6
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-08-27