<gh_stars>0
from GitCraw.strategy import Strategy
from bs4 import BeautifulSoup


class Type:
    """
    Search module with desired type; ex.: Issues, Repo, Wikis
    """

    def __init__(self, strategy: Strategy):
        """
        Load strategy
        """

        self._strategy = strategy

    @property
    def strategy(self) -> Strategy:
        return self._strategy

    @strategy.setter
    def strategy(self, strategy: Strategy):
        self._strategy = strategy

    def search_params(self, html):
        soup = BeautifulSoup(html, 'html.parser')
        if len(soup.find_all("div", {"class": "blankslate"})) > 0:
            print("There isn't an output with the specific search. Please try again")
            return {"url": "None"}
        else:
            return self._strategy.search_gh_data(soup)

from GitCraw.strategy import Strategy
from bs4 import BeautifulSoup


class Type:
    """
    Search module with desired type; ex.: Issues, Repo, Wikis
    """

    def __init__(self, strategy: Strategy):
        """
        Load strategy
        """

        self._strategy = strategy

    @property
    def strategy(self) -> Strategy:
        return self._strategy

    @strategy.setter
    def strategy(self, strategy: Strategy):
        self._strategy = strategy

    def search_params(self, html):
        soup = BeautifulSoup(html, 'html.parser')
        if len(soup.find_all("div", {"class": "blankslate"})) > 0:
            print("There isn't an output with the specific search. Please try again")
            return {"url": "None"}
        else:
            return self._strategy.search_gh_data(soup)
Search module with desired type; ex.: Issues, Repo, Wikis Load strategy