3 ms·
Python.org was pretty simple. bs4 really hits the brakes on the NYT page. ==== Total trials: 100000 ===== bs4 parsing time: 0.6 bs4 selecting time:
by mercuryrising 14y ago
Python.org was pretty simple. bs4 really hits the brakes on the NYT page.
==== Total trials: 100000 =====
bs4 parsing time: 0.6
bs4 selecting time: 146.3
pq parsing time: 0.0
pq selecting: 15.7
lxml parsing time: 0.0
lxml (cssselect) selecting time: 12.4
lxml parsing time: 0.0
lxml (xpath) selecting: 11.5
- kami8845 14y agoThat seems more in line with my experience :) This is the stuff lxml shines at. Thank you for testing this out.