-
Notifications
You must be signed in to change notification settings - Fork 4
/
ProxyIP.py
67 lines (56 loc) · 24.5 KB
/
ProxyIP.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#coding=utf8
# 代理池模块
# 使用该模块必须首先启动 IPProxyPool 代理池
import requests
import random
class ProxyIP():
host = 'http://60.205.212.2:8000' # 代理池请求位置
ip_pool = [["150.95.149.137", 3128, 10], ["218.14.115.211", 3128, 10], ["39.106.160.36", 3128, 10], ["150.95.191.96", 3128, 10], ["39.105.78.30", 3128, 10], ["43.247.70.250", 3128, 10], ["114.212.12.4", 3128, 10], ["94.242.59.245", 10010, 10], ["198.211.116.185", 80, 10], ["94.16.117.29", 3128, 10], ["94.16.122.115", 3128, 10], ["138.68.236.23", 3128, 10], ["206.81.2.4", 808, 10], ["203.69.87.196", 8080, 10], ["203.69.87.193", 8080, 10], ["185.146.156.112", 8888, 10], ["94.16.116.191", 3128, 10], ["121.43.60.109", 3128, 10], ["207.246.85.130", 9999, 10], ["203.69.87.194", 8080, 10], ["198.211.116.185", 8080, 10], ["45.248.68.2", 3128, 10], ["37.59.120.162", 3128, 10], ["198.50.137.181", 80, 10], ["51.38.114.104", 3128, 10], ["193.70.81.83", 3128, 10], ["54.37.156.128", 3128, 10], ["119.129.237.120", 60443, 10], ["138.197.222.18", 3128, 10], ["94.130.92.60", 3128, 10], ["77.120.30.17", 3128, 10], ["80.211.154.220", 8888, 10], ["46.218.85.77", 3129, 10], ["163.172.121.32", 3128, 10], ["217.61.23.64", 80, 10], ["178.238.235.228", 3128, 10], ["185.22.173.161", 10010, 10], ["217.61.5.209", 3128, 10], ["177.234.178.142", 3128, 10], ["35.198.32.89", 80, 10], ["39.106.155.184", 80, 10], ["201.20.118.53", 20183, 10], ["212.237.53.59", 3128, 10], ["89.23.1.15", 3128, 10], ["190.232.27.56", 53281, 10], ["177.21.109.77", 20183, 10], ["27.255.40.63", 8080, 10], ["49.51.86.151", 3128, 10], ["80.211.26.131", 3128, 10], ["58.87.77.126", 3128, 10], ["106.56.102.182", 8070, 10], ["176.9.28.86", 3128, 10], ["92.43.29.162", 53281, 10], ["103.42.162.30", 8080, 10], ["187.45.123.167", 3128, 10], ["66.82.144.29", 8080, 10], ["158.69.60.39", 8888, 10], ["139.255.40.130", 8080, 10], ["94.130.20.85", 31288, 10], ["117.58.243.244", 8080, 10], ["220.130.205.58", 8080, 10], ["223.242.93.91", 31588, 10], ["187.45.112.79", 20183, 10], ["221.228.17.172", 8181, 10], ["189.124.17.126", 20183, 10], ["27.158.161.85", 808, 10], ["39.135.35.16", 80, 10], ["178.62.0.4", 8080, 10], ["31.44.249.23", 8080, 10], ["156.54.213.18", 3128, 10], ["202.51.103.250", 8080, 10], ["111.155.116.234", 8123, 10], ["124.235.144.237", 80, 10], ["46.150.174.90", 53281, 10], ["122.116.253.158", 8082, 10], ["161.132.97.91", 8080, 10], ["119.28.24.210", 80, 10], ["114.226.135.62", 6666, 10], ["60.214.155.243", 53281, 10], ["201.236.161.170", 8080, 10], ["119.252.160.34", 8080, 10], ["190.128.216.218", 53281, 10], ["110.170.150.215", 8080, 10], ["39.104.70.165", 8080, 10], ["121.196.218.197", 3128, 9], ["166.111.80.162", 3128, 9], ["59.188.151.138", 3128, 9], ["167.114.211.122", 3128, 9], ["167.114.185.238", 3128, 9], ["1.197.204.154", 8070, 9], ["178.32.181.66", 3128, 9], ["78.46.194.98", 3128, 9], ["217.61.106.183", 80, 9], ["194.67.201.106", 3128, 9], ["88.99.0.45", 3128, 9], ["103.242.219.242", 8080, 9], ["223.99.5.82", 63000, 9], ["129.146.70.253", 80, 9], ["195.201.97.32", 8888, 9], ["124.202.247.110", 8080, 9], ["119.23.217.114", 3128, 9], ["94.177.224.181", 8080, 9], ["142.4.209.32", 3128, 9], ["173.249.7.250", 3128, 9], ["140.143.231.139", 80, 9], ["37.187.88.105", 9999, 9], ["54.39.46.86", 3128, 9], ["183.182.105.161", 3129, 9], ["221.5.54.6", 808, 9], ["177.21.107.36", 20183, 9], ["216.98.211.255", 8080, 9], ["193.24.222.82", 3128, 9], ["184.82.10.76", 80, 9], ["5.197.183.222", 8080, 9], ["118.171.191.46", 3128, 9], ["1.175.140.70", 3128, 9], ["180.175.106.103", 9000, 9], ["43.255.22.186", 8080, 9], ["54.37.238.128", 3128, 9], ["95.86.57.82", 2016, 9], ["94.177.218.60", 3128, 9], ["94.232.189.219", 53281, 9], ["117.141.215.3", 1080, 9], ["5.152.158.4", 8080, 9], ["88.99.12.165", 80, 9], ["216.198.170.70", 8080, 9], ["80.211.50.116", 3128, 9], ["202.46.42.156", 80, 9], ["113.86.220.190", 60443, 9], ["122.154.143.76", 8080, 9], ["87.255.27.163", 3128, 9], ["109.205.166.105", 8080, 9], ["31.182.52.156", 3129, 9], ["191.251.118.149", 8080, 9], ["114.113.126.82", 80, 9], ["190.123.83.251", 8080, 9], ["88.85.246.20", 8080, 9], ["39.104.49.184", 8080, 9], ["101.81.109.123", 9000, 9], ["124.152.84.65", 53281, 9], ["187.37.112.153", 8080, 9], ["187.5.218.25", 53281, 9], ["103.15.187.116", 8080, 9], ["186.211.111.92", 20183, 9], ["116.214.32.51", 8080, 9], ["39.104.71.182", 8080, 9], ["125.46.0.62", 53281, 9], ["27.147.217.86", 8080, 9], ["145.239.93.131", 80, 9], ["222.132.145.122", 53281, 9], ["45.32.193.119", 8175, 9], ["103.93.168.249", 8080, 9], ["120.35.103.131", 6666, 9], ["36.76.100.48", 8080, 9], ["223.99.214.21", 53281, 9], ["221.7.255.168", 8080, 8], ["221.7.255.168", 80, 8], ["150.95.175.44", 11014, 8], ["111.13.61.60", 3128, 8], ["47.98.234.171", 3128, 8], ["54.200.218.28", 8080, 8], ["94.242.58.142", 10010, 8], ["114.226.65.157", 6666, 8], ["218.60.8.99", 3129, 8], ["38.65.145.250", 80, 8], ["188.166.3.32", 3128, 8], ["212.237.0.5", 8888, 8], ["66.70.147.197", 3128, 8], ["183.224.101.158", 63000, 8], ["112.5.146.112", 63000, 8], ["217.61.97.116", 8080, 8], ["218.60.8.98", 3129, 8], ["66.70.147.196", 3128, 8], ["139.5.146.210", 3128, 8], ["189.112.72.215", 3128, 8], ["139.99.158.149", 80, 8], ["213.142.149.2", 9090, 8], ["45.32.193.119", 8170, 8], ["54.39.19.46", 31289, 8], ["139.59.2.223", 8888, 8], ["103.205.134.180", 8080, 8], ["213.136.69.28", 3128, 8], ["201.130.29.115", 8080, 8], ["123.53.118.61", 61234, 8], ["47.93.193.230", 3128, 8], ["5.189.135.153", 8888, 8], ["66.70.182.19", 8080, 8], ["113.99.219.202", 9797, 8], ["123.57.61.38", 8118, 8], ["119.176.102.45", 9999, 8], ["171.221.202.181", 63000, 8], ["221.224.49.237", 3128, 8], ["177.43.41.140", 20183, 8], ["103.225.56.146", 8080, 8], ["187.95.34.10", 8080, 8], ["118.70.128.7", 8080, 8], ["151.80.88.45", 3128, 8], ["177.37.166.164", 20183, 8], ["187.33.245.50", 8080, 8], ["95.216.136.29", 3128, 8], ["113.200.159.155", 9999, 8], ["119.123.178.113", 9000, 8], ["111.155.124.73", 8123, 8], ["187.72.14.112", 8080, 8], ["103.205.134.182", 8080, 8], ["211.21.120.163", 8080, 8], ["14.118.255.52", 6666, 8], ["85.15.179.5", 8080, 8], ["213.168.37.86", 8080, 8], ["177.135.41.253", 20183, 8], ["200.72.187.75", 8080, 8], ["123.7.61.8", 53281, 8], ["118.178.227.171", 80, 8], ["200.199.38.234", 8080, 8], ["202.46.42.156", 8080, 8], ["187.32.111.90", 20183, 8], ["223.85.196.75", 9797, 8], ["103.106.58.90", 8080, 8], ["217.65.212.222", 8080, 8], ["31.220.183.217", 53281, 8], ["185.139.92.1", 8080, 8], ["46.250.18.44", 53281, 8], ["39.104.57.121", 8080, 8], ["37.147.2.141", 53281, 8], ["125.209.84.78", 8080, 8], ["122.252.182.80", 53281, 8], ["201.18.98.18", 8080, 8], ["112.17.14.93", 80, 7], ["218.207.212.86", 80, 7], ["106.38.159.103", 8888, 7], ["47.96.27.114", 3128, 7], ["47.96.136.240", 3128, 7], ["101.132.122.230", 3128, 7], ["180.97.83.42", 3128, 7], ["119.122.31.96", 9000, 7], ["180.101.205.253", 8888, 7], ["35.231.32.168", 80, 7], ["129.213.76.9", 3128, 7], ["116.62.115.14", 3128, 7], ["139.224.80.139", 3128, 7], ["221.176.212.98", 3128, 7], ["213.6.40.142", 80, 7], ["81.89.101.227", 3128, 7], ["121.225.24.115", 3128, 7], ["106.56.102.16", 8070, 7], ["36.33.25.55", 808, 7], ["163.172.220.221", 8888, 7], ["119.129.236.216", 60443, 7], ["195.201.133.248", 3130, 7], ["125.72.232.198", 8070, 7], ["185.18.255.85", 3128, 7], ["190.151.94.45", 8080, 7], ["14.20.235.98", 9797, 7], ["118.212.137.135", 31288, 7], ["191.252.103.140", 3128, 7], ["14.20.235.21", 9797, 7], ["106.56.102.204", 8070, 7], ["39.135.35.18", 80, 7], ["175.209.132.102", 808, 7], ["114.115.169.31", 3128, 7], ["221.122.91.60", 80, 7], ["183.63.126.227", 63000, 7], ["106.56.102.228", 8070, 7], ["187.110.93.120", 20183, 7], ["177.85.114.211", 3128, 7], ["200.122.211.26", 8080, 7], ["113.78.255.242", 9000, 7], ["101.37.79.125", 3128, 7], ["221.122.91.65", 80, 7], ["123.31.47.8", 3128, 7], ["222.185.23.147", 6666, 7], ["200.114.80.220", 8080, 7], ["113.240.226.164", 8080, 7], ["221.122.91.64", 80, 7], ["218.88.105.186", 808, 7], ["221.122.91.34", 80, 7], ["179.154.88.16", 20183, 7], ["200.113.104.126", 80, 7], ["221.176.65.10", 8888, 7], ["163.125.64.78", 9797, 7], ["80.211.41.5", 3128, 7], ["111.8.104.226", 63000, 7], ["117.141.155.244", 53281, 7], ["117.141.155.241", 53281, 7], ["45.76.126.52", 80, 7], ["218.201.55.74", 63000, 7], ["170.233.232.9", 8080, 7], ["177.223.110.161", 50000, 7], ["39.104.60.83", 8080, 7], ["46.101.0.138", 8080, 7], ["112.102.227.229", 8888, 7], ["189.76.81.14", 20183, 7], ["190.121.158.122", 8080, 7], ["39.135.35.17", 80, 6], ["114.226.65.203", 6666, 6], ["119.28.194.66", 8888, 6], ["139.224.24.26", 8888, 6], ["92.222.213.107", 3128, 6], ["71.13.112.152", 3128, 6], ["202.103.244.54", 808, 6], ["182.45.179.241", 6666, 6], ["219.131.240.219", 9797, 6], ["125.118.75.248", 6666, 6], ["144.217.161.149", 8080, 6], ["223.98.189.173", 63000, 6], ["36.33.25.91", 808, 6], ["79.143.85.36", 8888, 6], ["103.242.219.243", 8080, 6], ["194.169.206.141", 8080, 6], ["222.171.83.213", 63000, 6], ["118.114.77.47", 8080, 6], ["60.214.118.170", 63000, 6], ["80.211.16.27", 3128, 6], ["139.59.9.245", 8000, 6], ["118.171.190.218", 3128, 6], ["124.16.89.124", 1080, 6], ["120.92.79.182", 8118, 6], ["101.236.41.207", 3128, 6], ["117.146.19.161", 3128, 6], ["116.226.231.32", 53281, 6], ["106.56.102.175", 8070, 6], ["190.145.45.150", 3128, 6], ["27.31.100.203", 28687, 6], ["176.9.28.86", 1080, 6], ["94.41.211.94", 53281, 6], ["202.21.114.139", 53281, 6], ["45.32.193.119", 8131, 6], ["191.7.194.54", 20183, 6], ["41.77.130.74", 53281, 6], ["58.221.72.189", 3128, 6], ["187.44.255.234", 20183, 6], ["222.185.23.39", 6666, 6], ["200.105.167.254", 80, 6], ["103.248.254.51", 80, 6], ["181.211.240.147", 8080, 6], ["221.122.91.61", 80, 6], ["191.5.125.58", 20183, 6], ["195.201.43.199", 3128, 6], ["179.107.52.143", 80, 6], ["183.56.177.130", 808, 6], ["193.188.254.67", 53281, 6], ["1.179.181.17", 8081, 6], ["201.76.9.2", 8080, 6], ["218.56.132.156", 8080, 6], ["114.101.44.115", 65309, 6], ["203.142.72.114", 808, 6], ["181.49.157.34", 3128, 6], ["31.25.141.46", 53281, 6], ["39.104.52.217", 8080, 6], ["45.125.223.18", 8080, 6], ["118.190.210.163", 80, 6], ["184.82.10.76", 8080, 6], ["115.166.128.230", 65309, 6], ["187.44.182.162", 20183, 6], ["39.104.74.25", 8080, 6], ["111.155.116.219", 8123, 6], ["196.61.8.118", 8080, 6], ["2.93.41.170", 8080, 6], ["175.181.40.61", 8080, 6], ["218.64.119.216", 53281, 6], ["173.249.38.68", 3128, 6], ["185.68.195.103", 8080, 6], ["139.99.40.10", 3128, 6], ["125.66.165.155", 53281, 6], ["14.118.252.202", 6666, 6], ["165.16.3.54", 53281, 6], ["190.24.131.250", 3128, 6], ["191.253.208.132", 20183, 6], ["139.255.69.148", 3128, 6], ["103.89.168.131", 8080, 6], ["115.229.113.229", 9000, 6], ["80.211.33.158", 3128, 6], ["39.104.76.202", 8080, 6], ["45.115.168.40", 8080, 6], ["45.250.169.177", 53281, 6], ["47.95.201.41", 3128, 5], ["123.57.217.208", 3128, 5], ["121.42.167.160", 3128, 5], ["180.110.7.184", 3128, 5], ["47.52.203.27", 3128, 5], ["5.196.189.104", 3128, 5], ["80.211.189.165", 3128, 5], ["120.192.21.7", 63000, 5], ["144.217.191.27", 80, 5], ["80.211.5.160", 8888, 5], ["106.56.102.111", 8070, 5], ["110.164.181.164", 8081, 5], ["80.211.180.224", 3128, 5], ["47.98.33.168", 3128, 5], ["111.155.116.210", 8123, 5], ["115.233.209.134", 3128, 5], ["103.206.185.66", 8080, 5], ["217.69.4.255", 3128, 5], ["39.134.14.81", 8080, 5], ["191.32.188.79", 20183, 5], ["179.107.53.32", 80, 5], ["180.173.68.21", 9797, 5], ["155.4.12.61", 8080, 5], ["39.108.137.61", 808, 5], ["187.44.182.194", 20183, 5], ["103.205.134.179", 8080, 5], ["178.205.101.67", 3129, 5], ["212.237.7.196", 3128, 5], ["175.6.2.174", 8088, 5], ["181.176.184.164", 3128, 5], ["162.223.88.243", 80, 5], ["159.65.9.66", 8080, 5], ["106.56.102.5", 8070, 5], ["119.28.99.194", 3128, 5], ["191.35.99.222", 20183, 5], ["203.130.46.108", 9090, 5], ["163.125.17.204", 9999, 5], ["89.254.142.187", 8080, 5], ["210.242.163.176", 8080, 5], ["187.109.81.242", 20183, 5], ["220.249.185.178", 9999, 5], ["202.152.40.28", 8080, 5], ["49.48.16.31", 8080, 5], ["138.204.226.246", 3128, 5], ["213.129.57.10", 80, 5], ["61.158.187.157", 8080, 5], ["223.100.59.117", 63000, 5], ["168.232.12.193", 8080, 5], ["103.4.147.82", 8080, 5], ["39.104.14.171", 8080, 5], ["118.81.69.113", 9797, 5], ["177.54.110.14", 20183, 5], ["39.104.84.72", 8080, 5], ["177.137.142.91", 20183, 5], ["177.21.108.253", 20183, 5], ["179.191.234.6", 20183, 5], ["177.99.22.58", 20183, 5], ["39.104.69.114", 8080, 5], ["196.210.247.194", 8080, 5], ["14.192.144.102", 8080, 5], ["120.35.103.24", 6666, 5], ["183.179.199.225", 8080, 4], ["121.225.25.111", 3128, 4], ["118.31.57.128", 3128, 4], ["114.226.135.41", 6666, 4], ["221.229.18.82", 3128, 4], ["47.74.9.208", 3128, 4], ["113.200.56.13", 8010, 4], ["182.61.28.84", 808, 4], ["59.127.38.117", 8080, 4], ["114.47.114.64", 3128, 4], ["212.156.88.54", 8080, 4], ["93.170.186.7", 6666, 4], ["49.70.24.115", 61234, 4], ["121.196.211.154", 3128, 4], ["116.62.196.146", 3128, 4], ["212.156.88.54", 3128, 4], ["51.15.121.195", 3128, 4], ["95.67.22.147", 41890, 4], ["77.55.217.220", 3128, 4], ["221.179.233.57", 63000, 4], ["112.73.6.40", 3128, 4], ["58.219.155.20", 61234, 4], ["114.249.117.149", 9000, 4], ["120.78.78.141", 8888, 4], ["186.232.184.1", 8080, 4], ["158.69.206.181", 8888, 4], ["187.35.99.163", 20183, 4], ["110.164.181.164", 8080, 4], ["138.118.123.231", 8080, 4], ["81.89.71.166", 51890, 4], ["116.255.35.23", 8081, 4], ["188.120.238.38", 5555, 4], ["200.11.13.160", 3128, 4], ["138.0.204.122", 41496, 4], ["14.207.209.13", 8080, 4], ["122.183.139.101", 8080, 4], ["222.220.34.74", 1337, 4], ["200.155.126.54", 20183, 4], ["185.26.169.61", 8080, 4], ["1.196.161.241", 9999, 4], ["194.177.0.74", 53281, 4], ["121.52.214.202", 1080, 4], ["177.21.107.131", 20183, 4], ["58.20.246.206", 53281, 4], ["195.146.133.90", 3128, 4], ["187.33.87.86", 20183, 4], ["220.184.213.194", 6666, 4], ["186.195.99.182", 8080, 4], ["58.221.72.184", 3128, 4], ["177.94.205.200", 8080, 4], ["153.149.171.138", 34567, 4], ["183.89.10.15", 8080, 4], ["194.187.149.126", 45619, 4], ["201.22.164.201", 8080, 4], ["187.85.156.140", 20183, 4], ["144.48.111.197", 8080, 4], ["39.104.13.180", 8080, 4], ["177.47.151.227", 8080, 4], ["114.228.75.91", 6666, 4], ["187.115.153.195", 53281, 4], ["121.40.108.76", 80, 4], ["195.178.56.35", 8080, 4], ["202.125.94.139", 1234, 4], ["213.108.33.167", 8080, 4], ["180.210.177.86", 80, 4], ["119.15.93.202", 8080, 4], ["223.85.196.75", 9999, 4], ["188.120.232.181", 8118, 4], ["110.185.227.236", 9999, 4], ["115.229.81.38", 9000, 4], ["192.99.160.45", 8080, 4], ["200.116.227.138", 65103, 4], ["186.10.5.142", 8080, 4], ["139.99.99.177", 3128, 4], ["39.104.58.83", 8080, 4], ["60.251.138.103", 8080, 4], ["177.139.160.146", 9090, 4], ["123.138.89.133", 9999, 4], ["43.228.74.253", 8080, 4], ["117.139.126.236", 53281, 4], ["60.248.222.206", 8080, 4], ["123.161.19.248", 9797, 4], ["189.51.117.198", 20183, 4], ["186.4.224.100", 8080, 4], ["110.232.83.238", 3128, 4], ["37.200.224.179", 8080, 4], ["191.242.166.255", 20183, 4], ["177.21.52.12", 20183, 4], ["39.104.28.240", 8080, 4], ["177.21.108.158", 20183, 4], ["180.210.205.107", 3128, 4], ["45.125.222.97", 8080, 4], ["114.215.95.188", 3128, 3], ["223.145.228.33", 6666, 3], ["47.254.41.58", 3128, 3], ["54.38.156.250", 80, 3], ["140.143.228.133", 1080, 3], ["5.199.135.163", 80, 3], ["121.231.226.51", 6666, 3], ["183.143.34.183", 61234, 3], ["162.243.118.179", 3128, 3], ["54.38.156.250", 8080, 3], ["80.211.141.177", 8888, 3], ["14.18.147.210", 3128, 3], ["200.11.228.86", 3128, 3], ["183.129.207.74", 14823, 3], ["14.1.102.218", 8080, 3], ["201.44.162.2", 3128, 3], ["106.56.102.163", 8070, 3], ["59.173.73.233", 3128, 3], ["1.196.161.172", 9999, 3], ["223.93.172.248", 3128, 3], ["186.215.199.245", 20183, 3], ["183.88.56.237", 8080, 3], ["202.152.63.98", 3128, 3], ["113.161.173.10", 3128, 3], ["200.105.209.118", 8080, 3], ["186.226.218.32", 8080, 3], ["94.23.196.68", 3128, 3], ["186.68.85.26", 53281, 3], ["223.199.186.173", 808, 3], ["200.229.220.200", 8080, 3], ["46.73.33.253", 8080, 3], ["138.118.48.93", 8080, 3], ["125.21.43.82", 8080, 3], ["27.151.78.189", 3128, 3], ["103.205.134.181", 8080, 3], ["101.6.97.134", 1080, 3], ["39.104.74.95", 8080, 3], ["217.23.69.198", 3128, 3], ["119.147.93.210", 3128, 3], ["125.25.150.47", 8080, 3], ["39.104.28.190", 8080, 3], ["91.191.33.166", 53281, 3], ["180.210.177.86", 8080, 3], ["177.247.218.165", 8080, 3], ["223.68.190.130", 8181, 3], ["113.200.214.164", 9999, 3], ["177.72.6.127", 8080, 3], ["131.161.26.122", 8080, 3], ["191.7.218.226", 20183, 3], ["39.104.77.15", 8080, 3], ["1.2.228.141", 8080, 3], ["183.89.11.195", 8080, 3], ["125.209.74.106", 8080, 3], ["113.87.161.115", 8088, 3], ["190.104.249.148", 8080, 3], ["95.104.16.21", 8080, 3], ["52.203.60.247", 80, 3], ["103.25.120.134", 8080, 3], ["180.250.174.251", 8080, 3], ["122.72.18.34", 80, 2], ["122.72.18.35", 80, 2], ["180.119.65.144", 3128, 2], ["112.115.57.20", 3128, 2], ["183.30.197.126", 9797, 2], ["61.144.205.247", 80, 2], ["118.190.210.227", 3128, 2], ["221.217.51.241", 9000, 2], ["14.118.255.194", 6666, 2], ["87.98.250.55", 80, 2], ["64.23.56.171", 3128, 2], ["1.58.173.99", 63000, 2], ["213.32.61.247", 3128, 2], ["86.105.51.105", 3128, 2], ["80.211.37.110", 3128, 2], ["74.82.50.155", 3128, 2], ["88.99.110.138", 3128, 2], ["54.39.46.90", 3128, 2], ["185.22.174.65", 10010, 2], ["150.95.151.68", 8181, 2], ["115.29.170.58", 8118, 2], ["190.13.186.18", 8080, 2], ["94.130.14.146", 31288, 2], ["84.52.74.194", 8080, 2], ["58.221.72.185", 3128, 2], ["218.106.205.145", 8080, 2], ["183.252.17.81", 63000, 2], ["125.167.77.32", 80, 2], ["51.15.86.88", 3128, 2], ["37.59.115.136", 3128, 2], ["178.132.3.94", 31289, 2], ["81.162.69.91", 8080, 2], ["39.106.35.201", 3128, 2], ["144.76.62.29", 3128, 2], ["114.226.128.204", 6666, 2], ["117.202.20.70", 556, 2], ["183.128.202.229", 3128, 2], ["221.122.91.59", 80, 2], ["115.36.86.97", 3128, 2], ["213.149.188.243", 8080, 2], ["51.15.227.220", 3128, 2], ["110.52.93.46", 53281, 2], ["124.47.7.38", 80, 2], ["101.108.126.67", 80, 2], ["211.75.82.206", 3128, 2], ["222.208.223.24", 63000, 2], ["177.21.97.44", 20183, 2], ["119.188.162.165", 8081, 2], ["223.245.47.7", 63909, 2], ["58.249.55.222", 9797, 2], ["168.0.190.55", 3128, 2], ["183.51.191.184", 9999, 2], ["177.126.81.62", 20183, 2], ["36.66.243.242", 88, 2], ["202.74.243.112", 8080, 2], ["60.191.134.165", 9999, 2], ["60.10.80.113", 9000, 2], ["218.56.132.155", 8080, 2], ["111.155.116.200", 8123, 2], ["184.82.237.248", 8080, 2], ["117.141.99.38", 53281, 2], ["42.104.84.106", 8080, 2], ["78.132.137.229", 8181, 2], ["213.14.242.57", 8080, 2], ["195.201.177.180", 3128, 2], ["218.56.132.154", 8080, 2], ["194.87.148.93", 53281, 2], ["123.231.251.194", 3128, 2], ["192.241.154.247", 8080, 2], ["158.199.141.106", 80, 2], ["218.4.62.141", 8080, 2], ["36.37.134.18", 8080, 2], ["59.39.63.142", 8181, 2], ["131.72.126.194", 3128, 2], ["153.149.171.57", 34567, 2], ["218.56.132.158", 8080, 2], ["202.59.138.138", 8080, 2], ["39.104.50.204", 8080, 2], ["95.135.142.198", 8080, 2], ["120.35.103.219", 6666, 2], ["39.135.35.19", 80, 1], ["118.31.33.206", 3128, 1], ["94.242.58.14", 10010, 1], ["119.28.142.148", 8888, 1], ["120.55.53.109", 3128, 1], ["45.63.60.229", 3128, 1], ["183.196.24.219", 63000, 1], ["140.143.96.216", 80, 1], ["114.231.67.65", 18118, 1], ["106.110.0.89", 61234, 1], ["60.184.175.48", 3128, 1], ["185.22.174.68", 10010, 1], ["95.216.21.158", 3128, 1], ["117.64.234.51", 1133, 1], ["119.28.152.208", 80, 1], ["103.86.48.157", 3128, 1], ["183.144.206.162", 3128, 1], ["39.134.14.66", 8080, 1], ["202.130.161.204", 80, 1], ["177.69.217.40", 3128, 1], ["87.106.23.164", 3128, 1], ["92.113.181.6", 8080, 1], ["1.175.142.138", 3128, 1], ["113.200.241.202", 63000, 1], ["177.47.225.157", 20183, 1], ["91.73.131.254", 8080, 1], ["91.221.242.112", 8080, 1], ["182.52.112.119", 8080, 1], ["185.102.188.12", 8080, 1], ["110.185.229.160", 9999, 1], ["121.46.95.27", 8080, 1], ["200.105.209.250", 8080, 1], ["183.89.57.236", 8080, 1], ["152.231.81.122", 53281, 1], ["125.94.0.251", 8080, 1], ["176.100.121.173", 8080, 1], ["115.231.50.10", 53281, 1], ["118.171.221.32", 3128, 1], ["201.16.239.34", 3128, 1], ["188.232.183.166", 53281, 1], ["114.249.119.208", 9000, 1], ["198.27.78.80", 3128, 1], ["180.210.205.104", 3128, 1], ["81.91.222.238", 8080, 1], ["79.173.124.207", 53281, 1], ["125.94.0.252", 8080, 1], ["79.106.45.28", 8181, 1], ["46.16.226.10", 8080, 1], ["183.89.10.181", 8080, 1], ["120.79.64.64", 80, 1], ["5.133.27.55", 3129, 1], ["181.65.168.76", 3128, 1], ["181.115.241.90", 80, 1], ["190.184.228.205", 8080, 1], ["39.104.54.116", 8080, 1], ["14.118.252.169", 6666, 1], ["186.216.220.171", 8080, 1], ["111.155.124.77", 8123, 1], ["31.45.230.19", 8080, 1], ["178.62.13.163", 8080, 1], ["189.76.93.53", 20183, 1], ["116.206.152.182", 8080, 1], ["39.104.63.86", 8080, 1], ["189.76.94.20", 20183, 1], ["187.85.242.105", 20183, 1], ["182.88.187.18", 9797, 1], ["94.232.57.117", 8080, 1], ["200.37.16.250", 8080, 1], ["60.25.212.187", 9999, 1], ["168.90.64.186", 8080, 1], ["14.118.252.74", 6666, 1], ["39.104.62.87", 8080, 1], ["171.108.205.85", 55555, 1], ["45.65.227.42", 8080, 1], ["36.67.252.18", 8080, 1], ["118.31.56.49", 3128, 0], ["121.41.171.223", 3128, 0], ["94.242.58.108", 10010, 0], ["188.40.182.243", 3128, 0], ["58.57.75.142", 63000, 0], ["125.77.125.29", 63000, 0], ["223.99.212.110", 63000, 0], ["47.98.231.132", 3128, 0], ["80.211.6.90", 3128, 0], ["163.172.86.64", 3128, 0], ["106.56.102.65", 8070, 0], ["88.150.135.18", 3128, 0], ["195.66.141.147", 8080, 0], ["159.89.204.212", 8080, 0], ["119.29.185.79", 8080, 0], ["114.25.72.104", 53281, 0], ["179.185.10.162", 20183, 0], ["49.48.191.35", 8080, 0], ["201.114.242.54", 3128, 0], ["183.15.122.133", 3128, 0], ["222.42.136.15", 63000, 0], ["197.210.152.162", 8080, 0], ["117.25.176.213", 63000, 0], ["80.211.188.52", 8888, 0], ["202.159.112.221", 8080, 0], ["49.48.118.45", 8080, 0], ["221.122.91.66", 80, 0], ["118.123.147.82", 63000, 0], ["177.139.249.6", 8080, 0], ["106.1.72.19", 3128, 0], ["42.104.84.109", 8080, 0], ["94.177.233.135", 3128, 0], ["187.44.1.167", 8080, 0], ["220.173.106.168", 63000, 0], ["223.204.62.117", 8080, 0], ["187.95.236.240", 20183, 0], ["117.58.241.70", 8080, 0], ["67.205.165.192", 8080, 0], ["177.126.89.111", 8080, 0], ["113.53.47.12", 8080, 0], ["200.105.167.254", 8080, 0], ["200.89.98.38", 42619, 0], ["78.165.64.41", 8080, 0], ["180.234.219.166", 8080, 0], ["42.104.84.107", 8080, 0], ["118.171.187.168", 3128, 0], ["211.159.171.58", 80, 0], ["218.241.234.48", 8080, 0], ["116.254.102.86", 3128, 0], ["110.52.8.14", 53281, 0], ["5.167.6.35", 8080, 0], ["58.56.149.198", 53281, 0], ["120.77.254.116", 3128, 0], ["139.99.40.11", 3128, 0], ["41.164.32.58", 8080, 0], ["37.235.65.76", 8080, 0], ["189.85.161.57", 20183, 0], ["201.63.154.170", 20183, 0], ["124.172.232.49", 8010, 0], ["39.104.65.229", 8080, 0], ["39.104.14.237", 8080, 0], ["118.122.92.252", 37901, 0], ["125.45.87.12", 9999, 0], ["95.143.143.59", 53281, 0], ["177.21.52.25", 20183, 0], ["60.208.140.150", 53281, 0], ["58.38.89.10", 9000, 0], ["180.76.111.69", 3128, 0], ["176.97.42.111", 8080, 0], ["122.52.127.96", 8080, 0], ["173.249.41.162", 3128, 0], ["117.202.20.68", 556, 0], ["124.237.83.14", 53281, 0], ["220.180.50.14", 53281, 0], ["60.255.186.169", 8888, 0], ["177.47.226.107", 20183, 0], ["39.104.122.119", 8888, 0]]
def __init__(self):
'''初始化函数'''
# 初始化代理池
# print 'Init proxy pool !!!!!!!!!!!!!!!!!!!'
# self.update_pool()
pass
def get(self,protocol = -1):
'''
从代理池获取代理IP,默认获取一个
参数:
protocol= 0,1,2 分别代表协议 http、https、http/https都可
if protocol == -1,无所谓协议
'''
# 超出界限,或者代理池为空,更新代理池
# if len(self.ip_pool)==0:
# print 'proxy pool is NULL, update proxy pool !!!!!!!!'
# self.update_pool(protocol)
# 从代理池随机返回一个 ip
size = len(self.ip_pool)
idx = int(random.random()*size)
return self.ip_pool[idx]
def update_pool(self,protocol = -1):
'''更新代理池'''
# print 'Update proxy pool !!!!!!!!!'
# params = {
# # 'count':count,
# }
# if protocol != -1:
# params['protocol'] = protocol
# response = requests.get(self.host,params=params,timeout=10)
# self.ip_pool = eval(response.content)
pass
def delete(self,ip):
'''
从代理池中删除一个ip
'''
url = '%s/delete'%self.host
params = {
'ip':ip[0]
}
response = requests.get(url,params=params,timeout=10)
return response.content
def sum(self):
response = requests.get(self.host)
ips = eval(response.content)
return len(ips)
if __name__=="__main__":
print ProxyIP().sum()