- session: requests.Session,
- timeout: int) -> Iterable[Tag]:
- html = clean(fetch(url, session, timeout))
- return replies(html)
+ fetcher: Fetcher,
+ texout: IO[bytes],
+ pandoc: str) -> None:
+ texout.write(b'\\documentclass{article}\n\\begin{document}\n')
+ html = clean(parse(fetcher.fetch(url)))
+ for r in replies(html):
+ texout.write(html_to_tex(pandoc, r))
+ texout.write(b'\\end{document}\n')