Fix cuisineaz preparation and cooking time (site changed)
This commit is contained in:
parent
f5869b8262
commit
d7eb42f7d4
1 changed files with 2 additions and 2 deletions
|
|
@ -98,10 +98,10 @@ class RecipePage(BasePage):
|
|||
|
||||
l_spanprep = self.parser.select(main, 'span.preptime')
|
||||
if len(l_spanprep) > 0:
|
||||
preparation_time = int(l_spanprep[0].text.split()[0])
|
||||
preparation_time = int(self.parser.tocleanstring(l_spanprep[0]).split()[0])
|
||||
l_cooktime = self.parser.select(main, 'span.cooktime')
|
||||
if len(l_cooktime) > 0:
|
||||
cooking_time = int(l_cooktime[0].text.split()[0])
|
||||
cooking_time = int(self.parser.tocleanstring(l_cooktime[0]).split()[0])
|
||||
l_nbpers = self.parser.select(main, 'td#recipeQuantity span')
|
||||
if len(l_nbpers) > 0:
|
||||
rawnb = l_nbpers[0].text.split()[0]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue