[750g] site changed
This commit is contained in:
parent
9a8d5ad740
commit
c7b0fd019b
1 changed files with 1 additions and 1 deletions
|
|
@ -86,7 +86,7 @@ class RecipePage(HTMLPage):
|
||||||
obj_preparation_time = Time(CleanText('//span[@class="preptime"]'))
|
obj_preparation_time = Time(CleanText('//span[@class="preptime"]'))
|
||||||
|
|
||||||
def obj_nb_person(self):
|
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_instructions = CleanHTML('//div[@class="recette_etapes"]')
|
||||||
obj_picture_url = CleanText('//section[has-class("recette_infos")]/div/img[@class="photo"]/@src')
|
obj_picture_url = CleanText('//section[has-class("recette_infos")]/div/img[@class="photo"]/@src')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue