Skip to content
This repository was archived by the owner on Nov 5, 2022. It is now read-only.

Commit

Permalink
grab whatever top builds can be found, 10 not required to scrape anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
diginc committed Jun 16, 2016
1 parent cf564c1 commit a4d9ccd
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions herolib/HeroParser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []

Expand Down

0 comments on commit a4d9ccd

Please sign in to comment.