new backend 750g for cookboob, get_recipe NYI
This commit is contained in:
parent
a130e17d30
commit
b724840ddb
7 changed files with 276 additions and 1 deletions
|
|
@ -38,7 +38,7 @@ class ResultsPage(BasePage):
|
|||
short_description = NotAvailable
|
||||
imgs = self.parser.select(tds[0],'img')
|
||||
if len(imgs) > 0:
|
||||
thumbnail_url = unicode(imgs[0].attrib('src',''))
|
||||
thumbnail_url = unicode(imgs[0].attrib.get('src',''))
|
||||
link = self.parser.select(tds[1],'div.m_search_titre_recette a',1)
|
||||
title = unicode(link.text)
|
||||
id = link.attrib.get('href','').replace('.aspx','').replace('/recettes/recette_','')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue