You should be good with

    sel.xpath('h2.blabla::text')

If that doesnt work, could you share a bit more of the HTML?

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 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.

Reply via email to