Issue
I am creating a data scraper using scrapy. I shell the product url using
scrapy shell 'https://royalprint.pk/product/name-print-superhero-sweatshirt-011/'
and then run this command
In [43]: response.css('span.woocommerce-Price-currencySymbol::text').get()
Out[43]: 'Rs'
It only returns the currency symbol.
Here is the source code product image
Someone please correct me what I did wrong here ?
Regards
Solution
Its might help.
for price in response.css('p.price'):
print(price.xpath('./del/span/bdi/text()').get())
print(price.xpath('./ins/span/bdi/text()').get())
Answered By - Samsul Islam
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.