import requests
from lxml import html

from documentscraper.base import ScraperEngineBase


class RequestsScraperEngine(ScraperEngineBase):

    def get_page(self, url: str):
        response = requests.get(url)
        response.raise_for_status()
        return html.fromstring(response.content)

    def get_element(self, page, xpath: str):
        pass

    def navigate(self, page, element):
        pass

    def as_string(self, element):
        pass

import requests
from lxml import html

from documentscraper.base import ScraperEngineBase


class RequestsScraperEngine(ScraperEngineBase):

    def get_page(self, url: str):
        response = requests.get(url)
        response.raise_for_status()
        return html.fromstring(response.content)

    def get_element(self, page, xpath: str):
        pass

    def navigate(self, page, element):
        pass

    def as_string(self, element):
        pass
