hexo-seo-autopush

Daily automatic submission of urls to baidu and Google bing

Usage no npm install needed!

<script type="module">
  import hexoSeoAutopush from 'https://cdn.skypack.dev/hexo-seo-autopush';
</script>

README

说明

每天中午12点推送一次网站信息到Baidu和Bing,提高爬虫抓取几率

可手动点击star触发Actions

使用

  1. 安装
npm install hexo-seo-autopush --save
  1. 配置文件 在hexo _config.yml 配置文件中添加
# enable: 开启/关闭 推送
# cron: 执行时间周期
# count: 每次提交最新的10篇文章
# date: 更新时间(updated)|创建日期(created)
# https://github.com/lete114/hexo-seo-autopush.git
hexo_seo_autopush:
  cron: 0 4 * * *
  baidu:
    enable: true
    date: created 
    count: 10
  bing:
    enable: true
    date: created 
    count: 10
  google:
    enable: true
    date: created 
    count: 10
    google_file: google_service_account.json # 谷歌服务账户
  1. 安全设置 打开你博客仓库地址如下图 Secrets
Name Value 说明
baidu_token UlxxxxxxxxxxB9 【必填】Value输入百度的token
bing_apikey 47xxxxxxxxxxxxx91 【必填】Value输入必应的apikey

详细

关于谷歌(Google Indexing API)请访前往 ---> https://blog.lete114.top/article/hexo-seo-autopush.html