]> git.scottworley.com Git - paperdoorknob/blobdiff - spec.py
More structure and tests around splitting the page into chunks' DOMs.
[paperdoorknob] / spec.py
diff --git a/spec.py b/spec.py
index 98832bfddfed9978ea67e14edca2b5900d5bc56d..2b80f163d880c78d36556437b70ab4805eed8a48 100644 (file)
--- a/spec.py
+++ b/spec.py
@@ -9,14 +9,21 @@ from dataclasses import dataclass
 
 from typing import Callable, IO
 
 
 from typing import Callable, IO
 
+from bs4.element import Tag
+
 from fetch import Fetcher
 from texify import Texifier
 from fetch import Fetcher
 from texify import Texifier
+from images import ImageStore
 
 
 
 
+# pylint: disable=too-many-instance-attributes
 @dataclass(frozen=True)
 class Spec:
     url: str
     fetcher: Fetcher
 @dataclass(frozen=True)
 class Spec:
     url: str
     fetcher: Fetcher
+    images: ImageStore
     htmlfilter: Callable[[bytes], bytes]
     htmlfilter: Callable[[bytes], bytes]
+    domfilter: Callable[[Tag], None]
     texifier: Texifier
     texifier: Texifier
+    geometry: str | None
     texout: IO[bytes]
     texout: IO[bytes]