Germey 9 年之前
父節點
當前提交
154dc2494f
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      proxypool/getter.py

+ 5 - 1
proxypool/getter.py

@@ -3,7 +3,11 @@ from pyquery import PyQuery as pq
 
 
 class ProxyMetaclass(type):
-
+    """
+        元类,在FreeProxyGetter类中加入
+        __CrawlFunc__和__CrawlFuncCount__
+        两个参数,分别表示爬虫函数,和爬虫函数的数量。
+    """
     def __new__(cls, name, bases, attrs):
         count = 0
         attrs['__CrawlFunc__'] = []