aa96bc963c
- 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>
24 lines
445 B
Python
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",
|
|
]
|