def parse_contributions_calendar(contributions_calendar):
 for line in contributions_calendar.splitlines():
  for day in line.split():
   if ('data-count=' in day):
    commit = day.split('=')[1]
    commit = commit.strip('"')
    (yield int(commit))

def parse_contributions_calendar ( contributions_calendar ) : for line in contributions_calendar . splitlines ( ) : for day in line . split ( ) : if ( 'data-count=' in day ) : commit = day . split ( '=' ) [ 1 ] commit = commit . strip ( '"' ) ( yield int ( commit ) )
yield daily counts extracted from the contributions svg .