original_docstring: 
      Function to scrape wikipedia by "Education" or "Alma mater" table row
      
docstring: Function to scrape wikipedia by "Education" or "Alma mater" table row
docstring_tokens: Function to scrape wikipedia by " Education " or " Alma mater " table row
code: def wiki_edu_scrape(wiki_url):
      '''
      Function to scrape wikipedia by "Education" or "Alma mater" table row
      '''
      
      r = requests.get(wiki_url).text
      soup = BeautifulSoup(r, features="html.parser")
      box = soup.find('table', attrs={'class': 'infobox vcard'})
      try:
          edus = box.find('th', text='Education').next_sibling
          edu = [ a.text for a in edus.find_all('a') ]
      except:
          edus = box.find('a', attrs={'title': 'Alma mater'})
          edu = [ a.text for a in edus.parent.next_sibling.find_all('a') ]
      
      return edu
code_tokens: def wiki_edu_scrape ( wiki_url ) : r = requests . get ( wiki_url ) . text soup = BeautifulSoup ( r , features = "html.parser" ) box = soup . find ( 'table' , attrs = { 'class' : 'infobox vcard' } ) try : edus = box . find ( 'th' , text = 'Education' ) . next_sibling edu = [ a . text for a in edus . find_all ( 'a' ) ] except : edus = box . find ( 'a' , attrs = { 'title' : 'Alma mater' } ) edu = [ a . text for a in edus . parent . next_sibling . find_all ( 'a' ) ] return edu
short_docstring: Function to scrape wikipedia by "Education" or "Alma mater" table row
short_docstring_tokens: Function to scrape wikipedia by " Education " or " Alma mater " table row
comment: '''
      Function to scrape wikipedia by "Education" or "Alma mater" table row
      '''