我知道如何使用 Python 解析页面。我的问题是哪种方法是所有解析技术中最快的,其他方法的速度有多快?
我知道的解析技术有Xpath、DOM、BeautifulSoup,还有使用Python的find方法。
最佳答案
http://blog.ianbicking.org/2008/03/30/python-html-parser-performance/
关于python - Xpath vs DOM vs BeautifulSoup vs lxml vs other 解析网页的最快方法是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8342335/