New to scraping. I am trying to scrape an element within quotes and a
tag. If I type:
for rating in flex.find_all("div", class_="article-seller-rating m-t-1"):
print(rating)
I get the following:
<div class="article-seller-rating m-t-1">
<div>
<span class="rating relative js-popover pointer" data-container="body" data-content="Buyers rated this dealer:<br><br>4.9 out of 5 stars<br>Number of reviews: 18" data-placement="top" data-title="Reviews">
<More un-important stuff here>
</span></div>
</div>
I want to extract 2 elements:
4.9 (the review rating), and
18 (the number of reviews)
Any help is greatly appreciated!