Beispiel #1
0
 def get_dishes(self):
     today = Today()
     day = today.get_swe()
     text = self.get_text()
     self.restaurant["price"] = self.get_price(text)
     self.restaurant["dishes"] = self.get_todays_dishes(text, day)
     return self.restaurant
Beispiel #2
0
 def get_dishes(self):
     dishes = []
     text = self.get_text()
     today = Today()
     day = today.get_swe()
     todays_dishes = scraper.get_todays_dishes(text, day)
     pasta_dishes = scraper.get_pasta(text)
     dishes.extend(todays_dishes)
     dishes.extend(pasta_dishes)
     self.restaurant['dishes'] = dishes 
     self.restaurant['price'] = self.get_price(text)
     return self.restaurant