Germey 8 years ago
parent
commit
154dc2494f
1 changed files with 5 additions and 1 deletions
  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__'] = []