whatsnew-nlp-engine / domain /interfaces.py
JsonDONSON's picture
Upload folder using huggingface_hub
6545796 verified
Raw History Blame Contribute Delete
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."""
...