dllpl / google-fast-indexing
这是一个用于在Google搜索中快速索引您的网站页面的PHP包。
1.0.1
2024-01-11 08:43 UTC
Requires
- php: ^7.4|| ^8.0
- ext-json: *
- google/apiclient: 2.15.0
README
(en) 用于在Google搜索结果中快速索引网站的库(网站页面)。基于库 google/apiclient。 从获取Google API密钥到提交索引URL的详细指南可在 此链接 获取
(ru) 用于在Google搜索结果中快速索引网站的库(网站页面)。基于库 google/apiclient。 从获取Google API密钥到提交索引URL的详细指南可在 此链接 获取
要求(Требования)
- php: ^7.4 || ^8.0
安装(Установка)
composer require dllpl/google-fast-indexing
使用示例(Вызов)
use Dllpl\Google\FastIndexing; // (en) path to the .json file of the private key received in the Google account // (ru) путь до .json файла приватного ключа, полученного в ЛК Google $fastIndexing = new FastIndexing('service_account.json'); // (en) path to the .txt file containing URLs to be sent for indexing // (ru) путь до .txt файла, содержащего url-адреса для отправки на индексацию $result = $fastIndexing->send('urls.txt'); var_dump($result);
示例文件 urls.txt(Пример файла)
每个URL占一行。这很重要。
https://mydomain.com
https://mydomain.com/all
https://mydomain.com/pages
...
附言。
最近,Google在自行索引其网站页面方面表现很差,速度也很慢。基于这一点,我们希望为我们的自身需求和GitHub社区的需求实现这个包。感谢您的点赞!我邀请您参与此包的开发。
(ru) 最近,Google在自行索引其网站页面方面表现很差,速度也很慢。基于这一点,我们希望为我们的自身需求和GitHub社区的需求实现这个包。感谢您的点赞!我邀请您参与此包的开发。