MCPcopy Create free account
hub / github.com/Python3WebSpider/ProxyPool / FatezeroCrawler

Class FatezeroCrawler

proxypool/crawlers/public/fatezero.py:8–26  ·  view source on GitHub ↗

Fatezero crawler,http://proxylist.fatezero.org

Source from the content-addressed store, hash-verified

6
7
8class FatezeroCrawler(BaseCrawler):
9 """
10 Fatezero crawler,http://proxylist.fatezero.org
11 """
12 urls = [BASE_URL]
13
14 def parse(self, html):
15 """
16 parse html file to get proxies
17 :return:
18 """
19
20 hosts_ports = html.split('\n')
21 for addr in hosts_ports:
22 if(addr):
23 ip_address = json.loads(addr)
24 host = ip_address['host']
25 port = ip_address['port']
26 yield Proxy(host=host, port=port)
27
28if __name__ == '__main__':
29 crawler = FatezeroCrawler()

Callers 1

fatezero.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected