using doc-forge (#1)

Reviewed-on: #1
Co-authored-by: Vishesh 'ironeagle' Bangotra <aetoskia@gmail.com>
Co-committed-by: Vishesh 'ironeagle' Bangotra <aetoskia@gmail.com>
This commit is contained in:
2026-01-22 11:27:56 +00:00
committed by aetos
parent 6808538485
commit 67a3074ab4
46 changed files with 4475 additions and 107 deletions

18
omniread/html/parser.pyi Normal file
View File

@@ -0,0 +1,18 @@
from typing import Any, Generic, TypeVar, Optional, list, dict
from bs4 import BeautifulSoup, Tag
from omniread.core.content import ContentType, Content
from omniread.core.parser import BaseParser
T = TypeVar("T")
class HTMLParser(BaseParser[T], Generic[T]):
supported_types: set[ContentType]
def __init__(self, content: Content, features: str = ...) -> None: ...
def parse(self) -> T: ...
@staticmethod
def parse_div(div: Tag, *, separator: str = ...) -> str: ...
@staticmethod
def parse_link(a: Tag) -> Optional[str]: ...
@staticmethod
def parse_table(table: Tag) -> list[list[str]]: ...
def parse_meta(self) -> dict[str, Any]: ...