diff --git a/yosoai/getter.py b/yosoai/getter.py index a5a38325..c736aec1 100644 --- a/yosoai/getter.py +++ b/yosoai/getter.py @@ -17,27 +17,27 @@ def get_function(link:str, param = HEADERS) -> str: response = requests.get(url=link, headers=param) return str(response.content) -def remover(file:str, only_body:bool = False) -> str: +def remover(file: str, only_body: bool = False) -> str: """ This function elaborates the HTML file and remove all the not necessary tag Parameters: file (str): the file to parse + only_body (bool): whether to parse only the body content or the entire file Returns: str: the parsed file """ - res = "" - if only_body == True: + if only_body: isBody = True else: isBody = False for elem in file.splitlines(): if "