View Single Post
Old 11-01-2015, 05:47 PM   #243
Wipneus
Connoisseur
Wipneus began at the beginning.
 
Wipneus's Avatar
 
Posts: 77
Karma: 12
Join Date: Jan 2012
Location: Nederland
Device: Ipad Pro
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
Wipneus is offline   Reply With Quote