feat(02-03): implement ZhihuAdapter for answer and zhuanlan content

- Implement ZhihuAdapter class inheriting PlatformAdapter
- Support answer URL content extraction
- Support zhuanlan (article) URL content extraction
- Add cookie-based authentication from KBSettings
- Detect login page redirects (expired cookies)
- Return AuthError for missing/expired cookies
- Format content with YAML frontmatter
- Update package exports to include ZhihuAdapter

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-13 18:24:55 +08:00
parent a6f4d34625
commit c4beb3ef3c
2 changed files with 7 additions and 0 deletions
+2
View File
@@ -12,8 +12,10 @@ Each adapter implements the PlatformAdapter interface:
from .base import PlatformAdapter
from .bilibili import BilibiliAdapter
from .zhihu import ZhihuAdapter
__all__ = [
"PlatformAdapter",
"BilibiliAdapter",
"ZhihuAdapter",
]