Skip to content

Add 5 Chinese platform templates (WeChat, Zhihu, Xiaohongshu, Bilibili, Chinese News) - #26

Open
hl7258888-commits wants to merge 1 commit into
community-archive:mainfrom
hl7258888-commits:feature/chinese-platform-templates
Open

Add 5 Chinese platform templates (WeChat, Zhihu, Xiaohongshu, Bilibili, Chinese News)#26
hl7258888-commits wants to merge 1 commit into
community-archive:mainfrom
hl7258888-commits:feature/chinese-platform-templates

Conversation

@hl7258888-commits

Copy link
Copy Markdown

Summary

Adds web clipper templates for 5 major Chinese content platforms — the first Chinese-language platform templates in this repo.

Template Platform Key Feature
WeChat Article mp.weixin.qq.com #js_content selector for clean article extraction
Zhihu zhihu.com (Q&A + columns) .RichText selector filters out votes, comments, recommendations
Xiaohongshu / RedNote xiaohongshu.com Carousel image dedup: :not(.swiper-slide-duplicate) + unique filter
Bilibili bilibili.com Auto-extracts BV number from URL for iframe embed; strips _哔哩哔哩_bilibili title suffix
Chinese News & Tech WSJ CN, Caixin, SSPAI, 36Kr, Huxiu, V2EX, Jike, etc. Multi-site catch-all for Chinese tech/news articles

Technical highlights

  • Xiaohongshu image deduplication: XHS uses Swiper.js carousel that duplicates slides for infinite loop. The template uses CSS pseudo-class `:not(.swiper-slide-duplicate)` combined with the `unique` filter and a `join` trick to produce clean, deduplicated image embeds.
  • Bilibili BV extraction: Chained filters extract the BV number from any Bilibili URL format for iframe embedding.
  • WeChat `#js_content`: Targets the exact content container, avoiding recommended articles and UI chrome.
  • Zhihu `.RichText`: Grabs only the answer/article body, skipping vote counts, comment sections, and sidebar content.

Test plan

  • Tested on WeChat articles (mp.weixin.qq.com)
  • Tested on Zhihu answers and columns (zhihu.com)
  • Tested on Xiaohongshu notes with single and multiple images
  • Tested on Bilibili video pages (BV number extraction + iframe)
  • Tested on 36Kr, SSPAI, V2EX articles

🤖 Generated with Claude Code

Templates for China's most popular content platforms:
- WeChat Articles (微信公众号): Uses #js_content selector for clean extraction
- Zhihu (知乎): Uses .RichText selector for answers and columns
- Xiaohongshu / RedNote (小红书): Carousel image dedup via :not(.swiper-slide-duplicate) + unique filter
- Bilibili (B站): Auto-extracts BV number for iframe embed, strips "_哔哩哔哩_bilibili" suffix
- Chinese News & Tech (中文资讯): Covers WSJ CN, Caixin, SSPAI, 36Kr, Huxiu, V2EX, Jike, etc.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant