Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xpath vs DOM vs BeautifulSoup vs lxml vs other Which is the fastest approach to parse a webpage?

I know how to parse a page using Python. My question is which is the fastest method of all parsing techniques, how fast is it from others?

The parsing techniques I know are Xpath, DOM, BeautifulSoup, and using the find method of Python.

like image 619
codersofthedark Avatar asked Dec 01 '11 13:12

codersofthedark


1 Answers

http://blog.ianbicking.org/2008/03/30/python-html-parser-performance/

Comparison

like image 200
Acorn Avatar answered Oct 05 '22 23:10

Acorn