Code Monkey home page Code Monkey logo

search-engine-rank's Introduction

Search-Engine-Rank

根据关键词获取网站在各大搜索引擎的排名情况

Latest Stable Version License Latest Unstable Version composer.lock

README: 中文/English

前言

仅供学习交流,切勿商用!

未设置代理ip的情况下,请谨慎使用!

安装

$ composer require tim168/search-engine-rank

使用

require __DIR__ .'/vendor/autoload.php';

use Tim168\SearchEngineRank\SearchEngineRank;

//关键字
$keyword = '华为';

//查询的页码
$page = 1;

//查询的网址
$url = 'https://www.huawei.com/';

//代理ip(若不设置,默认用本地ip)
$proxy = "112.245.21.58:548";

//超时时间
$timeout = 5;

$rank = SearchEngineRank::getRank(\Tim168\SearchEngineRank\Enum\SearchEngineEnum::PC_360, $keyword, $page, $proxy, $url,$timeout);

//返回排名数组
return $rank;

目前支持的搜索引擎

名称 标示 备注
百度 SearchEngineEnum::PC_BAI_DU pc-bai-du
移动百度 SearchEngineEnum::M_BAI_DU m-bai-du
360 SearchEngineEnum::PC_360 pc-360
搜狗 SearchEngineEnum::PC_SOU_GOU pc-sou-gou

搜索原理

License

MIT

后语

欢迎Star

search-engine-rank's People

Contributors

suppermoment avatar tim168 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.