ropendev/google 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

ropendev/google

Composer 安装命令:

composer require ropendev/google

包简介

Google Helper to Hack serp

README 文档

README

Few PHP classes to manage request on Google Web Search & co.

Google

use rOpenDev\Google\SearchViaCurl;
use rOpenDev\Google\TestProxy;
use rOpenDev\Google\SafeBrowsing;

$Google = new SearchViaCurl('my kw');

$Google->setProxy('monproxie:monport:username:password')
         ->setTld('com')
         ->setLanguage('en')
         ->setSleep(6)  // to wait between 2 requests on Google
         ->setCacheFolder(null) // to disable storing in the /tmp folder
         //->setCacheExpireTime(86400) // 1 Day
         ->setNbrPage(10) // Nbr de page à extraire
         ->setParameter('num', 100) // to add a parameter in the search url
;

/**
 * @return array of array containing type, title, link values
 */
$Google->extractResults();

// Delete cache files
$Google->deleteCacheFiles();


/**
 * @return int
 */
$Google->getNbrResults()

/**
 * @return string explaining the error
 */
$Google->getError(); // $Google->cErrors contains curl errors

/* return an array */

TestProxy::go('monrpoxu'); // @return bool

SafeBrowsing::get('https://piedweb.com');// @return bool

QWANT

Design for the contest qwanturank.

use rOpenDev\Qwant\QwantSearchViaCurl;

$Qwant = new QwantSearchViaCurl('qwanturank');

/**
 * @return array of array containing type, title, link values
 */
$Qwant->extractResults();

Contribute

Check coding standards before to commit : php-cs-fixer fix src --rules=@Symfony --verbose && php-cs-fixer fix src --rules='{"array_syntax": {"syntax": "short"}}' --verbose

Contributors

License

MIT (see the LICENSE file for details)

Latest Version Software License Build Status Quality Score Total Downloads

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-01-02

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固