X-Git-Url: http://git.scottworley.com/paperdoorknob/blobdiff_plain/23f3187945d1cf4f3a9cdc43462be2ca39e7023a..e10b5b6f112c057ab33ad46f8a3385d3bcd23e1d:/spec.py diff --git a/spec.py b/spec.py index 1322897..50746d7 100644 --- a/spec.py +++ b/spec.py @@ -7,7 +7,9 @@ from dataclasses import dataclass -from typing import IO +from typing import Callable, IO + +from bs4.element import Tag from fetch import Fetcher from texify import Texifier @@ -17,5 +19,8 @@ from texify import Texifier class Spec: url: str fetcher: Fetcher + htmlfilter: Callable[[bytes], bytes] + domfilter: Callable[[Tag], None] texifier: Texifier + geometry: str | None texout: IO[bytes]