hello
thanks for your feedback
this work perfectly I just add a .exact() for optain the value
sel.css('h2.blabla::text').exact()
regards2014-03-22 23:42 GMT+01:00 Paul Tremberth <[email protected]>: > Try: > sel.css('h2.blabla::text') > > Paul. > > On Saturday, March 22, 2014 11:35:51 PM UTC+1, d4v1d wrote: > >> hello >> i would like to catch the value of an h2 in a web page >> le h2 is like this : <h2 class="blabla"> tralala</h2> >> i would like to catch tralala based on the class of the h2 >> >> I tried this 2 differents things but nothing work >> item['h2'] = sel.css('span.titre-fiche-nom-etab h2::text').extract() >> item['h2'] = sel.xpath('//h2/text()').css('span#blabla') >> >> thanks in advance for your help >> regards >> > -- > You received this message because you are subscribed to a topic in the > Google Groups "scrapy-users" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/scrapy-users/HAXUbYVDkOE/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/scrapy-users. > For more options, visit https://groups.google.com/d/optout. > -- David LANGLADE 5 rue du patuel 42800 Saint martin la plaine Tel : 06.49.42.38.85 -- You received this message because you are subscribed to the Google Groups "scrapy-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/scrapy-users. For more options, visit https://groups.google.com/d/optout.
