1、下載網頁
urllib、urllib2
2、網頁解析
re:正則表達式
lxml:C語言編寫高效HTML/ XML處理庫。支持XPath。
BeautifulSop: 低效HTML/ XML處理庫,純Python實現。
1、下載網頁
urllib、urllib2
2、網頁解析
re:正則表達式
lxml:C語言編寫高效HTML/ XML處理庫。支持XPath。
BeautifulSop: 低效HTML/ XML處理庫,純Python實現。
class MetaCls(type): def __new__(cls, *args, **kwargs): print("in MetaCls") # return super(Meta