Spaces:
Running on Zero
Running on Zero
Download domain/interfaces.py from JsonDONSON/whatsnew-nlp-engine: direct link, hf CLI and curl.
- Browser
- Download file 281 Bytes
-
https://huggingface.co/spaces/JsonDONSON/whatsnew-nlp-engine/resolve/main/domain/interfaces.py
- Command line
-
hf download hf://spaces/JsonDONSON/whatsnew-nlp-engine/domain/interfaces.py
-
curl -L -o interfaces.py https://huggingface.co/spaces/JsonDONSON/whatsnew-nlp-engine/resolve/main/domain/interfaces.py
281 Bytes
| from typing import List, Protocol | |
| from domain.entities.article import Article | |
| class ScraperInterface(Protocol): | |
| source_name: str | |
| language: str | |
| def scrape(self) -> List[Article]: | |
| """Scrapes the target website and returns a list of Articles.""" | |
| ... | |