定制 socialapis/youtube-suggestions 二次开发

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

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

socialapis/youtube-suggestions

Composer 安装命令:

composer require socialapis/youtube-suggestions

包简介

A small webproxy for google and youtube autocomplete results.

README 文档

README

compatible

This repo is acting like the original youtube android aplication. It uses Google protobuf to decode the response.

Do you like this project? Support it by donating

socialAPIS

  • btc Bitcoin: bc1qkauwj52rr6pelckjfq4htgjl7jvamkq5lklqca

Installation

You Need!

  • Use PHP >= 7
  • Install composer.

Once you have composer installed, you can do the following:

composer require socialapis/youtube-suggestions

Usage

You can then do the following:

require_once '../vendor/autoload.php';

$youtube = new YoutubeSuggestions\Suggestions();

$response = $youtube->getSuggestions("Search query");

echo "Suggestion count: ", $response->getSearchModel()->count(), "\n";
echo "Requested query: ", $response->getRequestedQuery(), "\n";
echo "Request id: ", $response->getId()->getId(), "\n";

foreach ($response->getSearchModel() as $search_model) {
    $sugg = strip_tags($search_model->getSuggestion());
    echo $sugg, "\n";
}

See the following example, click here.

License

The Unlicense

For more information, please refer to https://unlicense.org

Legal

This code is in no way affiliated with, authorized, maintained, sponsored or endorsed by Google or Youtube or any of its affiliates or subsidiaries. This is an independent and unofficial API. Use at your own risk.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: RPL-1.5
  • 更新时间: 2020-04-05

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固