diff --git a/proxy_scraper_checker/scraper.py b/proxy_scraper_checker/scraper.py index d7219d1..2544380 100644 --- a/proxy_scraper_checker/scraper.py +++ b/proxy_scraper_checker/scraper.py @@ -60,9 +60,7 @@ async def scrape_one( for proxy in itertools.chain((proxy,), proxies): # noqa: B020 try: protocol = ProxyType[ - "HTTP" - if (p := proxy.group("protocol").upper()) == "HTTPS" - else p + proxy.group("protocol").upper().strip("S") ] except AttributeError: protocol = proto