README
Hexo-url-submission
Welcome to make valuable comments and Star
Roadmap
Documentation
Donate
Hexo-URL-Submssion is used to submit site URLs to major search engines, including Google, Bing, ShenMa and Baidu, to improve the speed and quality of sites included in search engines.
These three major search engines have occupied 98% of the global search engine market share (except Yandex Ru). Later, I will support api submission for more search engines.
As of August 2021, Google: 92.05%, Bing: 2.45%, Yahoo!: 1.5%, Baidu: 1.39%, Yandex: 1.21%, DuckDuckGo: 0.63%.
In China, Baidu, 360, Shenma (only app), Toutiao, Sogou and other search engines occupy a dominant position
Version record
- v1.0.0 feat: Support Baidu, Google, Bing url batch submission
- v1.0.1 fix(bing_deployer): local variables overwrite global variables and cause data errors
- v1.0.2 feat(shenma): Support ShenMa Search Engine
- v1.0.3 improve(dep): improve package dep
- v1.0.4 improve(dep): remove deprecated dep
Quick start
1. Install
npm install --save hexo-url-submission
or
yarn add hexo-url-submission
2. Edit hexo _config.yml
(1) hexo-url-submission
You can use environment variables in your local or CI/CD tools to safely store tokens
url_submission:
enable: true
type: 'latest' # latest or all( latest: modified pages; all: posts & pages)
channel: ['baidu', 'bing', 'google', 'shenma'] # Included channels are `baidu`, `google`, `bing`, `shenma`
prefix: ['/post', '/wiki'] # URL prefix
count: 10 # Submit limit
proxy: '' # Set the proxy used to submit urls to Google
urls_path: 'submit_url.txt' # URL list file path
baidu_token: '' # Baidu private key
bing_token: '' # Bing private key
google_key: '' # Google key path (e.g. `google_key.json` or `data/google_key.json`)
shenma_token: ''
shenma_user: '' # ShenMa user_name
sitemap: '' # Sitemap path(e.g. the url is like this https://abnerwei.com/baidusitemap.xml, you can fill in `baidusitemap.xml`)
(2) deploy
deploy:
- type: us_baidu_deployer
- type: us_bing_deployer
- type: us_google_deployer
- type: us_shenma_deployer
3. good job
Run:
hexo clean && hexo g && hexo d
enjoy it!
success response:
INFO Deploying: us_baidu_deployer
INFO submission_url: Submitting urls to baidu engine...
INFO Deploy done: ws_baidu_deployer
INFO submission_url: Submit to baidu engine: [ success: 32, remain: 2780 ]
INFO Deploying: us_bing_deployer
INFO submission_url: Submitting urls to bing engine...
INFO Deploy done: ws_bing_deployer
INFO submission_url: Submit to bing engine success
INFO Deploying: us_google_deployer
INFO submission_url: Submitting urls to google engine...
INFO Deploy done: ws_google_deployer
INFO submission_url: Submit to google engine success
INFO Deploying: us_shenma_deployer
INFO submission_url: Submitting urls to shenma engine...
INFO Deploy done: ws_shenma_deployer
INFO submission_url: Submit to shenma engine success