def retrieve_contributions_calendar(username, base_url):
 base_url = ((base_url + 'users/') + username)
 try:
  url = (base_url + '/contributions')
  page = urlopen(url)
 except (HTTPError, URLError) as e:
  print 'There was a problem fetching data from {0}'.format(url)
  print e
  raise SystemExit
 return page.read().decode('utf-8')

def retrieve_contributions_calendar ( username , base_url ) : base_url = ( ( base_url + 'users/' ) + username ) try : url = ( base_url + '/contributions' ) page = urlopen ( url ) except ( HTTPError , URLError ) as e : print 'There was a problem fetching data from {0}' . format ( url ) print e raise SystemExit return page . read ( ) . decode ( 'utf-8' )
retrieves the github commit calendar data for a username .