开发者

I'm parsing an HTML using lxml, but I only want a small subset of tags. What's the most efficient way to do this?

I'd prefer not to build the entire tree in memory and just pick the elements I'm lo开发者_StackOverflowoking for.


You could always use PyQuery; a JQuery like library for quick xml and xhtml manipulation.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜