Recently, I was dealing with Baidu indexing issues for a WordPress site. I also tried out a newly released domestic AI IDE along the way. I’ve recorded the process here, hoping it helps.
The Cause: Baidu Sitemap Submission Remains Unavailable
For my website shuijingwanwq.com in the Baidu Search Resource Platform, the sitemap submission feature always shows:
It prompts “Because Baidu’s sitemap is temporarily unavailable.” In other words, this path was a dead end from the start. With no other choice, I had to take the API active push route.
My Solution: Implementing Incremental Submission with Gin + MySQL
The website currently has 1141 articles (as stated in the sitemap generated by WordPress), and it will likely add about 100 new articles per year going forward. My requirements were simple:
Push all URLs from it via Baidu’s “Standard Inclusion – API Submission” interface
Only push URLs that have not been submitted before (incremental)
Provide a simple web interface to manually trigger submissions and display which URLs have been submitted and which are pending
Because the sitemap is strictly sorted by publication time in ascending order, I decided to use MySQL 8.0 to record submitted URLs. Each time, I start pushing from the record immediately following the last submitted one. The logic is clear.
Choosing an AI Coding Tool: My Dilemma and Final Choice
As a backend developer (primarily Go/PHP, occasionally writing frontend), I rely heavily on VS Code. However, GitHub Copilot’s free quota is too small, and it constantly conflicts with Tongyi Lingma. I wanted to find an AI IDE that has no Copilot remnants, comes with top-tier built-in models, and offers convenient domestic payment options.
I did a round of research:
Tool
Features
Pricing
Standalone IDE
Cursor
Best experience, built-in Claude/GPT-4o
$20/month, requires international credit card
Yes (VS Code fork)
Tongyi Lingma
Alibaba product, Java/Go friendly, standalone version available
Basic personal version free, Pro version ¥59/month
ByteDance product, domestic version has built-in domestic models, international version has Claude/GPT-4o
Domestic version free SOLO mode; international version $10/month, supports Alipay
Yes (standalone IDE)
Considering my familiarity with VS Code shortcuts, my desire to completely move on from Copilot, and my wish for a built-in Claude-level model, I ultimately chose the domestic version of Trae—the built-in Doubao, Tongyi Qianwen, and DeepSeek in the domestic version are more than enough for this project. The international version requires a credit card or PayPal for payment, which I didn’t try. If I really need to use foreign models in the future, I’ll reconsider.
Installing Trae Domestic Version: Hit Two Pitfalls
Pitfall 1: Downloaded the arm64 Version, Dependency Errors
I opened the trae.cn homepage and clicked “Download TRAE IDE” directly. The browser automatically downloaded a file. I didn’t pay much attention to the filename and opened it with the system software installer, which resulted in a long list of missing dependencies:
Plaintext
依赖: libasound2 (>= 1.0.17) but it is not installable依赖: libgtk-3-0 (>= 3.9.10) but it is not installable...
I checked and found that I had downloaded Trae_CN-linux-arm64.deb. I then checked my system architecture:
Bash
dpkg--print-architecture# 输出 amd64
My Ubuntu is x86_64, but I downloaded the ARM package. Later, I went to the official website, manually selected Trae_CN-linux-x64.deb, and downloaded it again (see Figure 1, Figure 2).
Figure 1: The download page showing the .deb (x64) option
Figure 2: The downloaded file Trae_CN-linux-x64.deb
Pitfall 2: Login Stuck on Browser Loading
The installation went smoothly this time. Upon opening it, the software asked me to choose an editor configuration—I chose VS Code, along with another editor (I can’t remember the name)—and then clicked “Personal User” to log in.
The browser popped up, but it kept showing a loading spinner and couldn’t complete the authorization.
My VPN was on, with the node set to Los Angeles, USA. Although I had already set trae.cn to direct connection in the VPN, there still seemed to be an issue.
Later, I simply clicked “Personal User” again, which reopened the browser login page. After trying about three times, it suddenly worked. The browser popped up the authorization page normally, and I successfully logged in by scanning the QR code (see Figure 3, Figure 4).
Figure 3: Trae is starting
Figure 4: Login interface, personal user login
I didn’t look deeply into the cause. The first request might have been stuck due to network issues, and retrying a few times got it through.
Entering IDE Mode, Ready to Start
After logging in, you can select the mode at the bottom of the interface: IDE or SOLO. I usually prefer writing code myself, using AI merely as a powerful completion and Q&A assistant, so I opted for IDE mode first (see Figure 5).
Figure 6: SOLO mode welcome screen, I switched to IDE
Next up is writing code to implement the specific features. Once I finish building the entire tool and get it running, I’ll write another post sharing the specific code implementation and the pitfalls I encountered.
Summary
After all that tinkering, I finally got my development environment set up. To recap:
Baidu API active push is an alternative when sitemap submission remains unavailable.
For small to medium projects, using MySQL to record submitted URLs + sequential incremental scanning is perfectly sufficient; there’s no need to introduce Redis.
The options for domestic AI coding tools are becoming increasingly diverse. The domestic version of Trae is free and supports domestic models, making it very friendly for individual developers.
When installing, pay attention to the system architecture (amd64 vs arm64). If you get stuck during login, clicking “Personal User” a few more times to re-trigger browser authorization often resolves the issue.
If you are also using Trae or another AI IDE, feel free to share your experiences~