You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
319 B
18 lines
319 B
from abc import ABC, abstractmethod
|
|
from models import ScrapedData
|
|
|
|
|
|
class ScraperStrategy(ABC):
|
|
@abstractmethod
|
|
def scrape(self) -> ScrapedData:
|
|
pass
|
|
|
|
@property
|
|
@abstractmethod
|
|
def name(self) -> str:
|
|
pass
|
|
|
|
@property
|
|
@abstractmethod
|
|
def source(self) -> str:
|
|
pass
|
|
|