diff --git a/config.py b/config.py index 389dc74..a343995 100644 --- a/config.py +++ b/config.py @@ -24,13 +24,13 @@ 'pattern': ".//*[@id='footer']/div/table/tr[position()>1]", 'position': {'ip': './td[1]', 'port': './td[2]', 'type': './td[4]', 'protocol': ''} }, - { - 'urls': ['http://cn-proxy.com/', 'http://cn-proxy.com/archives/218'], - 'type': 'xpath', - 'pattern': ".//table[@class='sortable']/tbody/tr", - 'position': {'ip': './td[1]', 'port': './td[2]', 'type': '', 'protocol': ''} - - }, +# { +# 'urls': ['http://cn-proxy.com/', 'http://cn-proxy.com/archives/218'], +# 'type': 'xpath', +# 'pattern': ".//table[@class='sortable']/tbody/tr", +# 'position': {'ip': './td[1]', 'port': './td[2]', 'type': '', 'protocol': ''} +# +# }, { 'urls': ['http://www.mimiip.com/gngao/%s' % n for n in range(1, 10)], 'type': 'xpath', @@ -38,22 +38,22 @@ 'position': {'ip': './td[1]', 'port': './td[2]', 'type': '', 'protocol': ''} }, - { - 'urls': ['https://proxy-list.org/english/index.php?p=%s' % n for n in range(1, 10)], - 'type': 'module', - 'moduleName': 'proxy_listPraser', - 'pattern': 'Proxy\(.+\)', - 'position': {'ip': 0, 'port': -1, 'type': -1, 'protocol': 2} - - }, - { - 'urls': ['http://incloak.com/proxy-list/%s#list' % n for n in - ([''] + ['?start=%s' % (64 * m) for m in range(1, 10)])], - 'type': 'xpath', - 'pattern': ".//table[@class='proxy__t']/tbody/tr", - 'position': {'ip': './td[1]', 'port': './td[2]', 'type': '', 'protocol': ''} - - }, +# { +# 'urls': ['https://proxy-list.org/english/index.php?p=%s' % n for n in range(1, 10)], +# 'type': 'module', +# 'moduleName': 'proxy_listPraser', +# 'pattern': 'Proxy\(.+\)', +# 'position': {'ip': 0, 'port': -1, 'type': -1, 'protocol': 2} +# +# }, +# { +# 'urls': ['http://incloak.com/proxy-list/%s#list' % n for n in +# ([''] + ['?start=%s' % (64 * m) for m in range(1, 10)])], +# 'type': 'xpath', +# 'pattern': ".//table[@class='proxy__t']/tbody/tr", +# 'position': {'ip': './td[1]', 'port': './td[2]', 'type': '', 'protocol': ''} +# +# }, { 'urls': ['http://www.kuaidaili.com/proxylist/%s/' % n for n in range(1, 11)], 'type': 'xpath', @@ -88,13 +88,13 @@ 'pattern': ".//*[@id='ip_list']/tr[position()>1]", 'position': {'ip': './td[2]', 'port': './td[3]', 'type': './td[5]', 'protocol': './td[6]'} }, - { - 'urls': ['http://www.cnproxy.com/proxy%s.html' % i for i in range(1, 11)], - 'type': 'module', - 'moduleName': 'CnproxyPraser', - 'pattern': r'