AI Agent Hub
Back to skills
Baidu Baijiahao Auto Publisher icon

Baidu Baijiahao Auto Publisher

Content Creation Updated 2026.08.30

Paste the following prompt into your AI chat to install this skill:

Please follow https://skillhub.cn/install/skillhub.md and install @user_a18d3671/baijiahao-publisher-plus into my AI assistant.

About this skill

The Problem It Solves

Publishing to Baidu Baijiahao looks simple: enter a title, paste or upload the article, choose a cover, and click publish. In practice, the page behavior is more fragile. The publish entry may not be reachable by direct URL, the title field is a contenteditable element rather than a standard input, document import depends on the editor toolbar, and cover, smart creation, AI generation, and confirmation dialogs can all affect the final result. This skill turns that repetitive clicking and checking sequence into a reusable publishing workflow for users who already have the material ready.

How It Works

The main entry point is scripts/pub_baijiahao.py, driven by command-line parameters:

  • Required: --title for the article title, --docx for the article document path, and --browser-data for the persistent browser profile
  • Optional: --cover for the cover image, --activity for an activity keyword, and --dry-run to validate without publishing

The workflow keeps an Edge login session, enters the publishing page from the Baijiahao home page instead of navigating directly, and then performs the publishing steps in order: fill the title, import the document, set the cover, check smart creation options, select AI generation, and confirm publication. Before publishing, it also runs a self-check covering the title, body length, cover image, checked smart creation options, and visible form errors, reducing the risk of a silent publish failure.

For batch publishing, the script can be invoked once per article, using separate docx files, titles, and cover images. The source material suggests waiting about 5 seconds between articles and keeping covers watermark-free.

Scope and Caveats

This skill only covers the publishing action. It does not handle topic selection, article writing, content management, or data review. Before use, Baijiahao should already be logged in, and the page structure should still match the selectors described in references/selectors.md. If the platform changes, the publishing entry, title field, #ueditor_0 body container, publish button, or confirmation modal may need troubleshooting again.

Use Cases

  • Publish prepared docx, title, and cover to Baijiahao.
  • Validate title, body, cover, and checkboxes with dry-run.
  • Loop through multiple articles using separate docx files.
  • Select an activity by keyword and submit the post.

Best For

  • Logged-in Baijiahao authors who want fewer manual clicks.
  • Operators batch-pushing prepared articles to Baijiahao.
  • Editors submitting activity posts by keyword.
  • Engineers troubleshooting publish-page selectors.