3 ms·
lxml can be hit-or-miss on HTML5 docs. I've had greater success with a modified version of gumbo-parser.
by sebcat 9y ago
lxml can be hit-or-miss on HTML5 docs. I've had greater success with a modified version of gumbo-parser.
- danso 9y agoAh very cool, had seen various python libraries about HTML5, but not gumbo (or at least I had starred it). https://github.com/google/gumbo-parser https://github.com/google/gumbo-parser Is the modified version you use a personal version or a well-known fork?
- sebcat 9y ago> Is the modified version you use a personal version or a well-known fork? I had a specific thing I needed to do, gumbo-parser was a good match, I poked at it a little and moved on. It started with this[1] commit, then I did some other work locally which was not pushed because google/gumbo-parser is without an owner/maintainer. There are a couple of forks, but no/little adoption it seems. [1] https://github.com/sebcat/gumbo-parser/commit/c158f8090c2df06e7dc3212557482173c602c56d https://github.com/sebcat/gumbo-parser/commit/c158f8090c2df0...