[750g] site changed

This commit is contained in:
Bezleputh 2015-09-22 15:12:01 +02:00
commit c7b0fd019b

View file

@ -86,7 +86,7 @@ class RecipePage(HTMLPage):
obj_preparation_time = Time(CleanText('//span[@class="preptime"]'))
def obj_nb_person(self):
return [Type(CleanText('//span[@class="yield"]'), type=int)(self)]
return [Type(CleanText('//span[@class="yield"]'), type=int, default=0)(self)]
obj_instructions = CleanHTML('//div[@class="recette_etapes"]')
obj_picture_url = CleanText('//section[has-class("recette_infos")]/div/img[@class="photo"]/@src')