Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tim168/search-engine-rank
:octocat::elephant:根据网站关键词,获取网站在各大搜索引擎(百度、360、搜狗)的排名情况,有利于网站seo
https://github.com/tim168/search-engine-rank
360 baidu laravel php search-engine sougou thinkphp yii2
Last synced: 2 days ago
JSON representation
:octocat::elephant:根据网站关键词,获取网站在各大搜索引擎(百度、360、搜狗)的排名情况,有利于网站seo
- Host: GitHub
- URL: https://github.com/tim168/search-engine-rank
- Owner: TIM168
- Created: 2020-06-04T07:41:32.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-06-22T08:50:46.000Z (over 4 years ago)
- Last Synced: 2025-01-23T04:09:33.002Z (2 days ago)
- Topics: 360, baidu, laravel, php, search-engine, sougou, thinkphp, yii2
- Language: PHP
- Homepage: https://github.com/TIM168/search-engine-rank
- Size: 27.3 KB
- Stars: 205
- Watchers: 11
- Forks: 19
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Search-Engine-Rank
根据关键词获取网站在各大搜索引擎的排名情况
[![Latest Stable Version](https://poser.pugx.org/tim168/search-engine-rank/v/stable)](https://packagist.org/packages/tim168/search-engine-rank)
[![License](https://poser.pugx.org/tim168/search-engine-rank/license)](https://packagist.org/packages/tim168/search-engine-rank)
[![Latest Unstable Version](https://poser.pugx.org/tim168/search-engine-rank/v/unstable)](https://packagist.org/packages/tim168/search-engine-rank)
[![composer.lock](https://poser.pugx.org/tim168/search-engine-rank/composerlock)](https://packagist.org/packages/tim168/search-engine-rank)README: [中文](https://github.com/TIM168/search-engine-rank/blob/master/README.md "中文")/[English](https://github.com/TIM168/search-engine-rank/blob/master/README-en.md "English")
## 前言
#### 仅供学习交流,切勿商用!
#### 未设置代理ip的情况下,请谨慎使用!## 安装
```shell
$ 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