File size: 249 Bytes
2700879
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
from abc import ABC, abstractmethod
from CrawDag.models import News
class Crawler(ABC):
    def __init__(self, topics: dict[str: str]) -> None:
        self.topics = topics
        
    @abstractmethod
    def crawl(self) -> list[News]:
        pass