Spaces:
Running
on
Zero
Running
on
Zero
File size: 364 Bytes
cae1372 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
import abc
class WebCrawler(abc.ABC):
@abc.abstractmethod
def get_website_content_from_url(self, url: str):
"""Get the website content from an url."""
pass
class WebSearchProvider(abc.ABC):
@abc.abstractmethod
def search_web(self, query: str):
"""Searches the web and returns a list of urls of the result"""
pass |