Beispiel #1
0
    def __init__(self):
        Plugin.__init__(self)

        self.name = '89代理'
        self.protocol = PROXY_PROTOCOL_HTTPS
        self.anonymity = PROXY_ANONYMITY_HIGH_ANONYMOUS

        self.host = 'www.89ip.cn'
        self.url_template = 'http://www.89ip.cn/index_{page}.html/'
        self.re_ip_pattern = re.compile(r"<td>\s+(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})\s+</td>")
        self.re_port_pattern = re.compile(r"<td>\s+(\d{1,5})\s+</td>")

        self._headers = headers(host=self.host)
Beispiel #2
0
    def __init__(self):
        Plugin.__init__(self)

        self.name = '西刺代理'
        self.protocol = PROXY_PROTOCOL_HTTP
        self.anonymity = PROXY_ANONYMITY_HIGH_ANONYMOUS

        self.host = 'www.xicidaili.com'
        self.url_template = 'http://www.xicidaili.com/nn/{page}/'
        self.re_ip_pattern = re.compile(r"<td>(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})</td>")
        self.re_port_pattern = re.compile(r"<td>(\d{1,5})</td>")

        self._headers = headers(host=self.host)
Beispiel #3
0
    def __init__(self):
        Plugin.__init__(self)

        self.name = '快代理'
        self.protocol = PROXY_PROTOCOL_HTTPS
        self.anonymity = PROXY_ANONYMITY_HIGH_ANONYMOUS

        self.host = 'www.kuaidaili.com'
        self.url_template = 'http://www.kuaidaili.com/free/inha/{page}/'
        self.re_ip_pattern = re.compile(r">(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})</td>")
        self.re_port_pattern = re.compile(r">(\d{1,5})</td>")

        self._cookie = None
        self._headers = headers(host=self.host)
Beispiel #4
0
    def __init__(self):
        Plugin.__init__(self)

        self.name = '云代理'
        self.protocol = PROXY_PROTOCOL_HTTPS
        self.anonymity = PROXY_ANONYMITY_HIGH_ANONYMOUS

        self.host = 'www.ip3366.net'
        self.url_template = 'http://www.ip3366.net/free/?stype=1&page={page}/'
        self.re_ip_pattern = re.compile(
            r"<td>(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})</td>")
        self.re_port_pattern = re.compile(r"<td>(\d{1,5})</td>")

        self._headers = headers(host=self.host)
Beispiel #5
0
    def __init__(self):
        Plugin.__init__(self)

        self.name = 'IP181'
        self.protocol = PROXY_PROTOCOL_HTTP
        self.anonymity = PROXY_ANONYMITY_HIGH_ANONYMOUS

        self.host = 'www.ip181.com'
        self.url_template = 'http://www.ip181.com/'
        self.re_ip_port_pattern = re.compile(
            r"<tr>\s+<td>(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})</td>\s+<td>(\d{1,5})</td>",
            re.I)

        self._headers = headers(host=self.host)