This repository has been archived on 2026-08-07. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
kb-skills/kb_workflow/crawler/__init__.py
T
starmen1265 aa96bc963c feat(08-01): implement ZhihuCrawler with API interception
- Add ZhihuCrawler class with crawl_answer() and crawl_article() methods
- Implement ZhihuApiInterceptor for capturing /api/v4/ responses
- Add _parse_author(), _parse_metadata(), _parse_answer_data(), _parse_article_data() helpers
- Support DOM parsing fallback for zhuanlan articles
- Export ZhihuCrawler and ZhihuApiInterceptor from __init__.py

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-17 21:10:10 +08:00

24 lines
445 B
Python

"""Zhihu Crawler Module
Provides content crawling capabilities for Zhihu using Playwright API interception.
"""
from .models import (
AuthorInfo,
ContentMetadata,
AnswerData,
ArticleData,
CrawlResult,
)
from .zhihu_crawler import ZhihuCrawler, ZhihuApiInterceptor
__all__ = [
"AuthorInfo",
"ContentMetadata",
"AnswerData",
"ArticleData",
"CrawlResult",
"ZhihuCrawler",
"ZhihuApiInterceptor",
]