Spaces:
Sleeping
Sleeping
Download crawl4ai/html2text/elements.py from JimLin0704/Crawl4AI: direct link, hf CLI and curl.
- Browser
- Download file 423 Bytes
-
https://huggingface.co/spaces/JimLin0704/Crawl4AI/resolve/main/crawl4ai/html2text/elements.py
- Command line
-
hf download hf://spaces/JimLin0704/Crawl4AI/crawl4ai/html2text/elements.py
-
curl -L -o elements.py https://huggingface.co/spaces/JimLin0704/Crawl4AI/resolve/main/crawl4ai/html2text/elements.py
423 Bytes
| from typing import Dict, Optional | |
| class AnchorElement: | |
| __slots__ = ["attrs", "count", "outcount"] | |
| def __init__(self, attrs: Dict[str, Optional[str]], count: int, outcount: int): | |
| self.attrs = attrs | |
| self.count = count | |
| self.outcount = outcount | |
| class ListElement: | |
| __slots__ = ["name", "num"] | |
| def __init__(self, name: str, num: int): | |
| self.name = name | |
| self.num = num | |