Responsive Ad Area

Share This Post

test

getting HTML class values from flipkart site

i am writing a scarpy spider to scrape the product details of whichever product i specify using scrapy. Is there a way to get the class values under the div tag ?

i tried using the below Xpath
items=response.xpath(‘//div[@data-id]’)
but the code will be more dynamic if i could get the class values of the first product that appears in the search


getting HTML class values from flipkart site
getting HTML class values from flipkart site
test
{$excerpt:n}

Share This Post

Leave a Reply

Your email address will not be Publishedd. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Skip to toolbar