diff --git a/languagemodels/__init__.py b/languagemodels/__init__.py index eb7a4d6..2edc16c 100644 --- a/languagemodels/__init__.py +++ b/languagemodels/__init__.py @@ -371,9 +371,9 @@ def get_web(url: str) -> str: url, headers={"User-Agent": "Mozilla/5.0 (compatible; languagemodels)"} ) - if 'text/plain' in res.raw.getheader("content-type"): + if "text/plain" in res.raw.getheader("content-type"): return res.text - elif 'text/html' in res.raw.getheader("content-type"): + elif "text/html" in res.raw.getheader("content-type"): return get_html_paragraphs(res.text) return ""