浏览代码

update deploy

Germey 6 年之前
父节点
当前提交
77dc39c6e0
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      proxypool/crawlers/public/ip3366.py

+ 2 - 1
proxypool/crawlers/public/ip3366.py

@@ -6,13 +6,13 @@ import re
 MAX_PAGE = 5
 BASE_URL = 'http://www.ip3366.net/free/?stype=1&page={page}'
 
+
 class IP3366Crawler(BaseCrawler):
     """
     ip3366 crawler, http://www.ip3366.net/
     """
     urls = [BASE_URL.format(page=i) for i in range(1, 8)]
     
-    
     def parse(self, html):
         """
         parse html file to get proxies
@@ -25,6 +25,7 @@ class IP3366Crawler(BaseCrawler):
             proxy = Proxy(host=address.strip(), port=int(port.strip()))
             yield proxy
 
+
 if __name__ == '__main__':
     crawler = IP3366Crawler()
     for proxy in crawler.crawl():