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

Class SeoFangFaCrawler

proxypool/crawlers/public/seofangfa.py:12–28  ·  view source on GitHub ↗

seo方法 crawler, https://proxy.seofangfa.com/

Source from the content-addressed store, hash-verified

10
11
12class SeoFangFaCrawler(BaseCrawler):
13 """
14 seo方法 crawler, https://proxy.seofangfa.com/
15 """
16 urls = ["https://proxy.seofangfa.com/"]
17
18 def parse(self, html):
19 """
20 parse html file to get proxies
21 :return:
22 """
23 doc = pq(html)
24 trs = doc('.table tr:gt(0)').items()
25 for tr in trs:
26 host = tr.find('td:nth-child(1)').text()
27 port = int(tr.find('td:nth-child(2)').text())
28 yield Proxy(host=host, port=port)
29
30
31if __name__ == '__main__':

Callers 1

seofangfa.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected