def visitors(start_date, end_date):
 visitors = {}
 request = _build_request()
 date = start_date
 while (date <= end_date):
  date_str = str(date)
  visitors[str(date)] = int(request.get(ids=('ga:' + profile_id), start_date=date_str, end_date=date_str, metrics='ga:visitors').execute()['rows'][0][0])
  date += timedelta(days=1)
 return visitors

def visitors ( start_date , end_date ) : visitors = { } request = _build_request ( ) date = start_date while ( date <= end_date ) : date_str = str ( date ) visitors [ str ( date ) ] = int ( request . get ( ids = ( 'ga:' + profile_id ) , start_date = date_str , end_date = date_str , metrics = 'ga:visitors' ) . execute ( ) [ 'rows' ] [ 0 ] [ 0 ] ) date += timedelta ( days = 1 ) return visitors
return the number of daily unique visitors for a given date range .