june

Results 18 comments of june

> As node-ids are simply integers, it's useful to be able to compare two ids to see which one appears first in the tree Is it? By which definition of...

There is no guarantee in either this library or scraper that the value of a NodeId would tell you that. NodeId's can be created in arbitrary order regardless of where...

Children form a linked list, so "index" isn't really a concept that should apply to them. The crate documentation claims that all methods are constant time and all iterators are...

I think something like `elem.parent().and_then(ElementRef::wrap).unwrap()` would work.

I think even if the only semantic requirement of accountextban is that it works on complete account names, it would still fulfill its function. Not sure quite how to word...

> @causal-agent Could you make this a comma-separated list of names? eg. `ACCOUNTEXTBAN=a,account` for Unreal >=6 and `ACCOUNTEXTBAN=R,account` for Insp >= 4, and `ACCOUNTEXTBAN=a` for Solanum What should I do...

My guess is it spends forever in `html5lib` trying to parse the page. Pure python parser = sadness.

``` >>> def parseit(): ... with open("big.html", "rb") as f: ... return html5lib.parse(f) ... >>> timeit.timeit(parseit) ``` This has been running for over 20 minutes...

Well I wanted to post the final count for timing html5lib for posterity but it seems python got OOM killed while I wasn't looking 🙁

Getting this issue on a different OS X machine running Yosemite 10.10. Seems like it breaks on OS X < 10.11, since Travis runs OS X 10.9.5.