Make a WeChat RSS feed from article listings and move an existing subscription
To follow new WeChat articles in a reader, generate wechat.xml from the titles, links and available summaries that wechat_mp.v2.fetch_account_articles returns in the account’s article list. Publish wechat.xml at an HTTPS address the reader can reach and subscribe to that address. Each refresh costs only the list pages you actually request. To show more article text in the reader, use the body excerpt RSS workflow for selected articles.
Generate a listing snapshot for one account
- Call
wechat_mp.v2.fetch_account_articleswith a confirmedusernameandraw:false, following incremental article checks. - Keep the successful scan’s
state.jsonandcoverage.json, and check the account, the pages read and the stop reason incoverage.json. - For a migration trial, select two older articles and one current article and record each article’s
app_msg_idandidx. - For scheduled updates, start each check on page one and follow that run’s cursor within your page limit.
If a scan fails, keep the published feed unchanged and update the feed after the next successful scan.
When the team only wants to see what was published today, a title, a source link and the available list summary are enough for a feed item. For example, a reader clicks the feed item “Installation manual update” and opens the original WeChat post. If readers need a body excerpt inside the reader, use the article-excerpt workflow for the selected articles.
Turn selected articles into feed input
- Save
make_feed.pyfrom the two-feed guide.make_feed.pyreads a JSON file withitems. - Save the adapter below as
wechat_feed_input.py.wechat_feed_input.pyreads the article keys you choose from the savedstate.jsonand writes theitemsinput formake_feed.py. - Run
wechat_feed_input.pywith the saved state file, the feed homepage’s HTTPS URL and the article keys to publish:
wechat_feed_input.py passes the saved digest when the article has one, and omits publication times. To filter by date, verify the unit and timezone of create_time, then set the generator’s published_at field. Keep the collection time in your scan records.
Trial an existing subscription migration
- Keep a copy of the old OPML and of the old feed XML if available.
- Compare the
linkandguidof two articles that appear in both the old feed andwechat.xml.wechat_feed_input.pycreates a stable ID from the account and the article key. If your reader relies on the old IDs, replace the new input item’sidwith the oldguidafter verifying that both point to the same original article, and keep the ID mapping for later runs. - Keep URLs that contain private access tokens in local records only.
- Serve
wechat.xmlat an HTTPS URL you control and add one test subscription in your reader. If the reader supports OPML import, replacexmlUrlin the sample OPML below.
The OPML file carries subscription URLs only; whether read state migrates depends on the reader.
What should you see in a three-article trial?
Checking one page for each of five accounts daily for 30 days uses 150 list requests. Extra pages and article details are counted separately. See BeatAPI pricing.

