How to get the number of <p> tags inside a div in scrapy?
I clean this link site .
The last tag <p>contains user_info, and this creates a problem for me, as I use -
''.join(response.xpath('//div[@class="entry-content"]/p[2]/text()').extract())
But it p[2]changes if the text above it is in good quantity. Let's say itp[5]
I think about it to calculate the number of tags <p>inside divand assign a number to myitem
How to deal with this problem?
+4