Hi am trying to scrape data from iframe tag, inside this tag have widget-loader.I tried to scrape rating and reviews by using scrapy and selenium but I can't able to scrape information.
HTML:
\<div class="tp-widget-summary__rating"\>\<span class="rating"\>2.3\</span\> / 5
\<span class="separator"\>•\</span\>
\<span class="tp-widget-summary__count"\>\<strong\>3\</strong\> reviews\</span\>\</div\>
Python code:
self.driver.get(url)
page_source = response.replace(body=self.driver.page_source)
page_source.css(".tp-widget-summary__rating span::text").extract_first()
I also tried with simple scrapy code and other ways like xpath.
Expected: {'rating':2.3,'reviews':3}