text: from urllib.request import urlopen
  from urllib.request import FancyURLopener
  from bs4 import BeautifulSoup
  import pandas as pd
  import os
  import _proj_functions as proj
  import _lookups as lookups
  import re
  
  outdir = '../output'
  
  ##### oregon #################
  school = 'oregon'
  url_template = 'http://goducks.com/roster.aspx?path={sporturl}'
  
  sports_dict = lookups.get_sports_dict()
  # sport_id: [sporturl, sport_table]
  sports_dict['baseball'] = ['baseball']
  sports_dict['mens basketball'] = ['mbball']
  sports_dict['womens basketball'] = ['wbball']
  sports_dict['football'] = ['football']
  sports_dict['womens soccer'] = ['wsoc']
  sports_dict['mens golf'] = ['golf']
  sports_dict['womens golf'] = ['wgolf']
  sports_dict['mens tennis'] = ['mten']
  sports_dict['womens tennis'] = ['wten']
  sports_dict['mens track'] = ['track']
  sports_dict['womens track'] = ['track']
  sports_dict['womens volleyball'] = ['wvball']
  sports_dict['mens cross country'] = ['cross']
  sports_dict['womens cross country'] = ['cross']
  sports_dict['softball'] = ['softball']
  sports_dict['womens acrobatics'] = ['acrotumble']
  sports_dict['womens lacrosse'] = ['wlax']
  sports_dict['womens beach volleyball'] = ['wbvball']
  
  # remove empty sports
  for (key, value) in sports_dict.copy().items():
  	if value == []:
  		del sports_dict[key]
  
  # change list number if not first ul of given classname on page
  for (key, value) in sports_dict.items():
  	if key in ['womens cross country', 'womens track']:
  		value.append(2)
  	else:
  		value.append(1)
  
  # loop through sports collecting rosters
  rosters = proj.gather_rosters_ul(sports_dict, url_template)
  rosters['college'] = school
  csvname = school + '_rosters.csv'
  rosters.to_csv(os.path.join(outdir, csvname))
  