Carlos Rocha
Initial release: Palisade Scanner v0.1.0 — web content security for AI agents
5f77ac0
Raw
History Blame Contribute Delete
339 Bytes
from abc import ABC, abstractmethod
from bs4 import BeautifulSoup
class BaseLoader(ABC):
"""Loads content from a source and returns a BeautifulSoup document."""
@abstractmethod
async def load(self, source: str) -> tuple[str, BeautifulSoup]:
"""Load content from source, return (url_or_source, soup)."""
...