old_contents: import beer_data
  import bad_beer as errors
  
  class Beer:
  	def __init__(self, name):
  		try:
  			self.name = name
  			self.raw_profile = beer_data.beer_profile(self.name)
  			self.score = self.get_score()
  			self.brewer = self.get_brewer()
  			self.style = self.get_style()
  			self.abv = self.get_abv()
  			self.description = self.get_description()
  		except errors.Invalid_Beer as error:
  			print(error.args[0])
  		except AttributeError:
  			print("you are trying to call a data retrieval method on a beer that could not be found")
  
  	def get_abv(self):
  		raw = self.raw_profile
  		abv_pointer = raw.find('Style | ABV')
  		abv_area = raw[abv_pointer:abv_pointer+100]
  		abv_start = abv_area.find(';')
  		abv_end = abv_area.find('%')
  		abv = abv_area[abv_start+1:abv_end+1]
  		return abv
  
  	def get_style(self):
  		raw = self.raw_profile
  		style_pointer = raw.find('Style | ABV')
  		style_area = raw[style_pointer:style_pointer+100]
  		style_start = style_area.find("><b>")
  		style_end = style_area.find("</b></a>")
  		style = style_area[style_start+4:style_end]
  		return style
  
  	def get_brewer(self):
  		raw = self.raw_profile
  		brewer_pointer = raw.find("Brewed by")
  		brewer_area = raw[brewer_pointer:brewer_pointer+150]
  		brewer_start = brewer_area.find("<b>")
  		brewer_end = brewer_area.find("</b></a>")
  		brewer = brewer_area[brewer_start+3:brewer_end]
  		return brewer
  
  	def get_score(self):
  		raw = self.raw_profile
  		score_pointer = raw.find("BAscore_big ba-score")
  		score_area = raw[score_pointer:score_pointer+100]
  		score_start = score_area.find(">")
  		score_end = score_area.find("<")
  		score = score_area[score_start+1:score_end]
  		return score
  
  	def get_description(self):
  		raw = self.raw_profile
  		desc_pointer = raw.find("Commercial Description")
  		desc_area = raw[desc_pointer:desc_pointer+200]
  		desc_start = desc_area.find("<br><br>")
  		desc_end = desc_area.find("</td>")
  		description = desc_area[desc_start+8:desc_end]
  		return description
  
new_contents: import beer_data
  import bad_beer as errors
  
  class Beer:
  	def __init__(self, name):
  		try:
  			self.name = name
  			self.raw_profile = beer_data.beer_profile(self.name)
  			self.score = self.get_score()
  			self.brewer = self.get_brewer()
  			self.style = self.get_style()
  			self.abv = self.get_abv()
  			self.description = self.get_description()
  		except errors.Invalid_Beer as error:
  			print(error.args[0])
  		except AttributeError:
  			print("you are trying to call a data retrieval method on a beer that could not be found")
  
  	def get_abv(self):
  		raw = self.raw_profile
  		abv_pointer = raw.find('Style | ABV')
  		abv_area = raw[abv_pointer:abv_pointer+100]
  		abv_start = abv_area.find(';')
  		abv_end = abv_area.find('%')
  		abv = abv_area[abv_start+1:abv_end+1]
  		return abv
  
  	def get_style(self):
  		raw = self.raw_profile
  		style_pointer = raw.find('Style | ABV')
  		style_area = raw[style_pointer:style_pointer+100]
  		style_start = style_area.find("><b>")
  		style_end = style_area.find("</b></a>")
  		style = style_area[style_start+4:style_end]
  		return style
  
  	def get_brewer(self):
  		raw = self.raw_profile
  		brewer_pointer = raw.find("Brewed by")
  		brewer_area = raw[brewer_pointer:brewer_pointer+150]
  		brewer_start = brewer_area.find("<b>")
  		brewer_end = brewer_area.find("</b></a>")
  		brewer = brewer_area[brewer_start+3:brewer_end]
  		return brewer
  
  	def get_score(self):
  		raw = self.raw_profile
  		score_pointer = raw.find("BAscore_big ba-score")
  		score_area = raw[score_pointer:score_pointer+100]
  		score_start = score_area.find(">")
  		score_end = score_area.find("<")
  		score = score_area[score_start+1:score_end]
  		return score
  
  	def get_description(self):
  		raw = self.raw_profile
  		desc_pointer = raw.find("Commercial Description")
  		desc_area = raw[desc_pointer:]
  		desc_start = desc_area.find("<br><br>")
  		desc_end = desc_area.find("</td>")
  		description = desc_area[desc_start+8:desc_end]
  		return description
  
subject: Update pybeer.py