8 lines
249 B
Python
8 lines
249 B
Python
from abc import ABC, abstractmethod
|
|
from typing import Any, Mapping, Optional
|
|
from .content import Content
|
|
|
|
class BaseScraper(ABC):
|
|
@abstractmethod
|
|
def fetch(self, source: str, *, metadata: Optional[Mapping[str, Any]] = ...) -> Content: ...
|