Hey,
response.xpath('//*[contains(@class, "div-class")]//a[contains(@href,
"/blog/")]/@href').extract()
Best Regards.
Lhassan.
2015-07-23 9:03 GMT+01:00 SreeSindhu Sruthi <[email protected]>:
> How to use contains for an attribute of a tag using xpath in scrapy
>
> --
> 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.
>
--
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.