From a4d9ccd7bfaee535400f46d6e7d6d32ec15aaa35 Mon Sep 17 00:00:00 2001 From: diginc Date: Wed, 15 Jun 2016 21:42:05 -0500 Subject: [PATCH] grab whatever top builds can be found, 10 not required to scrape anymore --- herolib/HeroParser.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/herolib/HeroParser.py b/herolib/HeroParser.py index 0555e32..1ddb3c4 100644 --- a/herolib/HeroParser.py +++ b/herolib/HeroParser.py @@ -56,10 +56,8 @@ def row_is_start_of_new_tier(row): def parse_top_builds(self, talents): """ Scrape the top winning build table and return a usable set of data by combining it with the talent table """ - raw_builds = [] - for i in range(0, 10): - search = 'ctl00_MainContent_RadGridPopularTalentBuilds_ctl00__' + str(i) - raw_builds.append(self.html.find(id=search)) + search = re.compile('ctl00_MainContent_RadGridPopularTalentBuilds_ctl00__\d\d?') + raw_builds = self.html.findAll(id=search) top_builds = []