b74f6a0c73
- Implement PlatformAdapter interface for Bilibili platform - Add video metadata extraction (BV号) - Add article metadata extraction (CV号) - Add automatic retry on network errors (3 attempts) - Add state recording for failed steps - Add content type identification from URL - Add output filename generation Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
20 lines
546 B
Python
20 lines
546 B
Python
"""Platform Adapters for KB Pipeline
|
|
|
|
This module provides platform-specific adapters for content extraction
|
|
from various platforms (Bilibili, Zhihu, etc.).
|
|
|
|
Each adapter implements the PlatformAdapter interface:
|
|
- get_content_type: Identify content type from URL
|
|
- fetch_metadata: Fetch content metadata
|
|
- fetch_content: Fetch content body in Markdown format
|
|
- get_output_filename: Generate output filename
|
|
"""
|
|
|
|
from .base import PlatformAdapter
|
|
from .bilibili import BilibiliAdapter
|
|
|
|
__all__ = [
|
|
"PlatformAdapter",
|
|
"BilibiliAdapter",
|
|
]
|