]>
Commit | Line | Data |
---|---|---|
23f31879 SW |
1 | # paperdoorknob: Print glowfic |
2 | # | |
3 | # This program is free software: you can redistribute it and/or modify it | |
4 | # under the terms of the GNU General Public License as published by the | |
5 | # Free Software Foundation, version 3. | |
6 | ||
7 | ||
8 | from dataclasses import dataclass | |
9 | ||
929db576 | 10 | from typing import Callable, IO |
23f31879 | 11 | |
8be20b9d SW |
12 | from bs4.element import Tag |
13 | ||
23f31879 SW |
14 | from fetch import Fetcher |
15 | from texify import Texifier | |
16 | ||
17 | ||
18 | @dataclass(frozen=True) | |
19 | class Spec: | |
20 | url: str | |
21 | fetcher: Fetcher | |
929db576 | 22 | htmlfilter: Callable[[bytes], bytes] |
8be20b9d | 23 | domfilter: Callable[[Tag], None] |
23f31879 SW |
24 | texifier: Texifier |
25 | texout: IO[bytes] |