I want to try my hand and webscraping. I noticed that Anglesharp is pretty good for .Net environment. I try to get a list of all descriptions and ratings from the yelp website and I am not getting any errors or any results. Here is a subset of what html looks like (for more details see https://www.yelp.ca/biz/walmart-toronto-12 "):
<div class="rating-very-large"> <i class="star-img stars_2" title="2.0 star rating"> <img alt="2.0 star rating" class="offscreen" height="303" src="//s3-media4.fl.yelpcdn.com/assets/srv0/yelp_styleguide/c2252a4cd43e/assets/img/stars/stars_map.png" width="84"> </i> <meta itemprop="ratingValue" content="2.0"> </div> <p itemprop="description" lang="en">This Walmart still terrifies me<br><br>Baby things can be found on the back right of the lower level. Godspeed.</p> <div class="rating-very-large"> <i class="star-img stars_1" title="1.0 star rating"> <img alt="1.0 star rating" class="offscreen" height="303" src="//s3-media4.fl.yelpcdn.com/assets/srv0/yelp_styleguide/c2252a4cd43e/assets/img/stars/stars_map.png" width="84"> </i> <meta itemprop="ratingValue" content="1.0"> </div> <p itemprop="description" lang="en">Wow I don't even know where to begin, </p>
Here is my request:
var config = var config = new Configuration().WithJavaScript().WithCss(); var parser = new HtmlParser(config); var document = await BrowsingContext.New(config).OpenAsync("https://www.yelp.ca/biz/walmart-toronto-12");
How to get a list of user reviews (descriptions) and ratings?
source share