Hello. There is a piece of html from which you need to match the min price

<span class="market_table_value"> <span class="market_listing_price market_listing_price_with_fee"> 1229,67 USD. </span> <span class="market_listing_price market_listing_price_with_fee"> 1175,57 USD. </span> <span class="market_listing_price market_listing_price_with_fee"> 1068,70 USD. </span> <br> </span> 

Parse meaning

 HtmlNodeCollection asd = doc.DocumentNode.SelectNodes("//div[@class='market_listing_price_listings_block']//div[@class='market_listing_right_cell market_listing_their_price']//span[@class='market_table_value']//span[@class='market_listing_price market_listing_price_with_fee']"); 

    1 answer 1

    Based on what I see from your input, I would do this:

     string data=""; //в этой переменной должен быть ваш HTML HtmlAgilityPack.HtmlDocument doc = new HtmlAgilityPack.HtmlDocument(); doc.LoadHtml(data); //получаем список всех span в которых содержится цена var nodes = doc.DocumentNode.SelectNodes("//span[@class=\"market_listing_price market_listing_price_with_fee\"]"); if (nodes == null) throw new ArgumentNullException("Данные не корректны"); float minimal = float.MaxValue; foreach(var key in nodes) { var price_data = key.InnerText.Trim().Split(' '); //отделяем число от USD float temp; if(float.TryParse(price_data[0], out temp)) { if (temp < minimal) minimal = temp; } } 

    Here you need to understand that this code is sharpened only for the example of HTML that you showed us.