|
@@ -238,6 +238,17 @@ class GetFreeProxy(object):
|
|
|
yield ':'.join(proxy)
|
|
yield ':'.join(proxy)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+ @staticmethod
|
|
|
|
|
+ def freeProxyTen():
|
|
|
|
|
+ urls = ['http://www.ip3366.net/free/']
|
|
|
|
|
+ request = WebRequest()
|
|
|
|
|
+ for url in urls:
|
|
|
|
|
+ r = request.get(url)
|
|
|
|
|
+ proxies = re.findall(r'<td>(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})</td>[\s\S]*?<td>(\d+)</td>', r.text)
|
|
|
|
|
+ for proxy in proxies:
|
|
|
|
|
+ yield ":".join(proxy)
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
@staticmethod
|
|
@staticmethod
|
|
|
def freeProxyWallFirst():
|
|
def freeProxyWallFirst():
|
|
|
"""
|
|
"""
|
|
@@ -356,12 +367,12 @@ if __name__ == '__main__':
|
|
|
|
|
|
|
|
# test_batch(gg.freeProxySeventh())
|
|
# test_batch(gg.freeProxySeventh())
|
|
|
|
|
|
|
|
- # to do
|
|
|
|
|
- test_batch(gg.freeProxyEight())
|
|
|
|
|
- # gg.freeProxyEight()
|
|
|
|
|
|
|
+ # test_batch(gg.freeProxyEight())
|
|
|
|
|
|
|
|
# test_batch(gg.freeProxyNinth())
|
|
# test_batch(gg.freeProxyNinth())
|
|
|
|
|
|
|
|
|
|
+ # test_batch(gg.freeProxyTen())
|
|
|
|
|
+
|
|
|
# test_batch(gg.freeProxyWallFirst())
|
|
# test_batch(gg.freeProxyWallFirst())
|
|
|
|
|
|
|
|
# test_batch(gg.freeProxyWallSecond())
|
|
# test_batch(gg.freeProxyWallSecond())
|