Giter Site home page Giter Site logo

digdug101 / hexo-url-submission Goto Github PK

View Code? Open in Web Editor NEW

This project forked from abnerwei/hexo-url-submission

1.0 1.0 0.0 20 KB

Quickly submit new post URLs to Google, Bing, and Baidu search engines to improve the quality and speed of website inclusion

Home Page: https://abnerwei.com/wiki/hexo/url-submission

License: MIT License

JavaScript 100.00%

hexo-url-submission's Introduction

Hexo-url-submission

Welcome to make valuable comments and Star

GitHub stars GitHub forks

NPM version GitHub top language GitHub code size in bytes GitHub repo size GitHub platforms GitHub issues GitHub closed issues Libraries.io dependency status for GitHub repo GitHub commit activity GitHub contributors

NPM

Roadmap

Roadmap, plan, milestone

Documentation

Read More

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

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

hexo-url-submission's People

Contributors

abnerwei avatar

Stargazers

Digger avatar

Watchers

James Cloos 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.