Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def taux():
- to=dict()
- a=response.selector.xpath('//strong').extract().strip()
- b=response.selector.xpath('//*[contains(concat( " ", @class, " " ), concat( " ", "text-right", " " ))]').extract().strip()
- for i in range(len(a)):
- clef=response.selector.xpath('//*[contains(concat( " ", @class, " " ), concat( " ", "col-xs-6", " " )) and (((count(preceding-sibling::*) + 1) = 1) and parent::*)]').extract()[i].strip()
- clef=clef[40:-5]
- o=response.selector.xpath('//strong').extract()[i].strip()
- o=o[8:-9]
- # o=list(o)
- c=b[i]
- c=c[-12:-14]
- o.append(c)
- to[clef]=o
- return (u,v for u,v in to.items())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement