From 0f8050bb8a7eb86c5b1a444adf2675151fede496 Mon Sep 17 00:00:00 2001 From: "A.Quasimodo" Date: Wed, 21 Mar 2018 11:30:00 +0800 Subject: [PATCH] fixed #40 --- scrapy_proxies/randomproxy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scrapy_proxies/randomproxy.py b/scrapy_proxies/randomproxy.py index 06a21ff..9f45828 100644 --- a/scrapy_proxies/randomproxy.py +++ b/scrapy_proxies/randomproxy.py @@ -43,7 +43,7 @@ def __init__(self, settings): fin = open(self.proxy_list) try: for line in fin.readlines(): - parts = re.match('(\w+://)([^:]+?:[^@]+?@)?(.+)', line.strip()) + parts = re.match('(\w+://)([^:]+?:.+@)?(.+)', line.strip()) if not parts: continue