Spaces:
Build error
Build error
Download src/core/interface/scraper_interface.py from 00Boobs00/search-web-MCP-server: direct link, hf CLI and curl.
- Browser
- Download file 679 Bytes
-
https://huggingface.co/spaces/00Boobs00/search-web-MCP-server/resolve/main/src/core/interface/scraper_interface.py
- Command line
-
hf download hf://spaces/00Boobs00/search-web-MCP-server/src/core/interface/scraper_interface.py
-
curl -L -o scraper_interface.py https://huggingface.co/spaces/00Boobs00/search-web-MCP-server/resolve/main/src/core/interface/scraper_interface.py
679 Bytes
| from abc import ABC, abstractmethod | |
| from src.models.scrape_models import ScrapeQuery, ScrapeResult | |
| class ScraperInterface(ABC): | |
| def get_url_content(url_parameters: ScrapeQuery) -> ScrapeResult: | |
| """ | |
| Fetches the content of the specified URL and returns the result as a ScrapeResult object. | |
| Args: | |
| url_parameters (ScrapeQuery): The URL parameters to fetch content from. | |
| Returns: | |
| ScrapeResult: An object containing the scraped content and related metadata. | |
| Raises: | |
| NotImplementedError: This method should be implemented by subclasses. | |
| """ | |
| raise NotImplementedError | |