def get_total_citations(soup):
 results = soup.find('div', attrs={'id': 'gs_ab_md'}).contents[0]
 matches = re.search('About\\s(\\d+)\\s', results)
 if matches:
  hits = matches.groups()[0]
  return hits

def get_total_citations ( soup ) : results = soup . find ( 'div' , attrs = { 'id' : 'gs_ab_md' } ) . contents [ 0 ] matches = re . search ( 'About\\s(\\d+)\\s' , results ) if matches : hits = matches . groups ( ) [ 0 ] return hits
get total citations .