Yeah, the algorithm for weighting the objects based on inner tag types is really impressive. I wish I had thought of that :).

This is also a god-send for web scraping. I've implemented it in several projects after porting it. Props to Arc90.