You might want to add some print statements to at least one of those FOR loops. Several things could be going on here. The two most likely are:
- The filter may only be matching five items.
- The HTML parser may be choking on some markup. In this case, it will attempt to load as much of the HTML DOM as it can.
By adding in some print statements, you might be able to see how many times it is iterating.
And as an aside, if you're trying to get the list of articles on your blog, reading the RSS or Atom feed might be easier (though I suppose it might not have all the info you need).