I found the code. It is the same as yours.
Quote:
return title
def parse_authors(self, root):
#search productinfo
authors = []
auteur_node = root.xpath('//div[@class="product_detail_title boxedbottom_s fleft"]/div/p[text()[contains(.,"Auteur")]]/span[@class="po_pdp_creator2"]/a')
if auteur_node:
for auteurs in auteur_node:
auteur=auteurs.text_content().strip()
authors.append(auteur)
valid_contrib = None
return authors
|