title: How to extract data from an HTML file using HTML Agility pack
body: <p>So I'm trying to extract all the team names from the URL that's in the code using the HTML agility pack, as of right now only the first team name is being outputted to the console and there is more than one team. </p>
  
  <p>If someone could point me in the right direction on how to solve my problem that'd be great, thanks.</p>
  
  <pre><code>namespace Html_Parser
  {
  public partial class MainPage : ContentPage
  {
      public MainPage()
      {
          InitializeComponent();
          StartWebCrawl();
  
  
  
      }
      private static async Task StartWebCrawl()
      {
          var url = "http://challonge.com/lhswaterwars17/module";
  
          var httpClient = new HttpClient();
          var html = await httpClient.GetStringAsync(url);
  
          var htmlDocument = new HtmlDocument();
          htmlDocument.LoadHtml(html);
  
          var divs = htmlDocument.DocumentNode.Descendants("div")
              .Where(node =&gt; node.GetAttributeValue("class", "")
              .Equals("tournament-bracket--search-layer")).ToList();
  
          var participants = new List&lt;Particpants&gt;();
  
          foreach (var div in divs)
          {
  
              var participant = new Particpants
              {
                   TeamName = div.Descendants("div").FirstOrDefault().InnerText
  
              };
  
              participants.Add(participant);
  
  
          }   
           foreach(var name in participants)
          {
              Debug.WriteLine(name.TeamName);
          }
  
      }
  
  }
  public class Particpants
  {
      public string TeamName {get; set;}
  
  }
  
  }
  </code></pre>