def load(self): try: self.report_raw = noaa_get.get(self.id) self.soup = BeautifulSoup(self.report_raw) self.info = self.soup.info return True except: return False
def load(self): #Refreshes the data try: self.alert_raw = noaa_get.get(self.url_formatter()) self.soup = BeautifulSoup(self.alert_raw) self.entries = (self.soup.find_all("entry")) self.updated = self.soup.find("updated") self.error_handeling() return True except: return False