title: Unable to parse div tag using beautiful soup in python?
body: <p>I am learning to use beautiful soup to parse div containers from html. But for some reason, when i pass the class name of the div containers to my beautiful soup, nothing happens. I am getting no element when i try to parse the div. What could i be doing wrong. here is my html and the parse
  </p>
  
  <pre><code>                                  &lt;div class="upcoming-date ng-hide no-league" ng-show="nav.upcoming" ng-class="{'no-league': !search.checkShowTitle(nav.sport,nav.todayHighlights,nav.upcoming,nav.orderBy,&amp;quot;FOOTBALL - HIGHLIGHTS&amp;quot;)}"&gt;
                          &lt;span class="weekday"&gt;Monday&lt;/span&gt;
                          &lt;timecomponent datetime="'2018-07-09T20:00:00+03:00'" show-date="true" show-time="false" class="date ng-isolate-scope"&gt;&lt;span class="ng-binding"&gt;09/07/18&lt;/span&gt;&lt;/timecomponent&gt;
                          &lt;div class="clear"&gt;&lt;/div&gt;
                      &lt;/div&gt;
  
  
  
  
  
              &lt;div id="g1390856" class="match football FOOTBALL - HIGHLIGHTS" itemscope="" itemtype="https://schema.org/SportsEvent"&gt;
      &lt;div class="leaguename ng-hide" ng-show="search.checkShowTitle(nav.sport,nav.todayHighlights,nav.upcoming,nav.orderBy,&amp;quot;FOOTBALL - HIGHLIGHTS&amp;quot;) &amp;amp;&amp;amp; (1 || (nav.upcoming &amp;amp;&amp;amp; 0))"&gt;
        &lt;span class="name"&gt;
          &lt;span class="flag-icon flag-icon-swe"&gt;&lt;/span&gt;
            Sweden - Allsvenskan
        &lt;/span&gt;
      &lt;/div&gt;
  
      &lt;ul class="meta"&gt;
          &lt;li class="date"&gt;
              &lt;timecomponent datetime="'2018-07-09T20:00:00+03:00'" show-date="true" show-time="false" class="ng-isolate-scope"&gt;&lt;span class="ng-binding"&gt;09/07/18&lt;/span&gt;&lt;/timecomponent&gt;
          &lt;/li&gt;
          &lt;li class="time"&gt;
              &lt;timecomponent datetime="'2018-07-09T20:00:00+03:00'" show-date="false" show-time="true" class="ng-isolate-scope"&gt;&lt;span class="ng-binding"&gt;20:00&lt;/span&gt;&lt;/timecomponent&gt;
          &lt;/li&gt;
          &lt;li class="game-id"&gt;&lt;span class="gameid"&gt;GameID:&lt;/span&gt; 2087&lt;/li&gt;
      &lt;/ul&gt;
      &lt;ul class="teams"&gt;
      &lt;li&gt;Hammarby&lt;/li&gt;
      &lt;li&gt;Ostersunds&lt;/li&gt;
  &lt;/ul&gt;
      &lt;ul class="bet-selector"&gt;
          &lt;li class="pick01" id="b499795664"&gt;
      &lt;a data-id="499795664" ng-click="bets.pick($event, 499795664, 2087, 2.10)" class="betting-button pick-button " title="Hammarby"&gt;
  
                                          &lt;span class="team"&gt;Hammarby&lt;/span&gt;
                  &lt;span class="odd"&gt;2.10&lt;/span&gt;
      &lt;/a&gt;
  &lt;/li&gt;                    &lt;li class="pick0X" id="b499795666"&gt;
      &lt;a data-id="499795666" ng-click="bets.pick($event, 499795666, 2087, 3.56)" class="betting-button pick-button " title="Draw"&gt;
                                                  &lt;span class="team"&gt;Draw&lt;/span&gt;
                  &lt;span class="odd"&gt;3.56&lt;/span&gt;
      &lt;/a&gt;
  &lt;/li&gt;                &lt;li class="pick02" id="b499795668"&gt;
      &lt;a data-id="499795668" ng-click="bets.pick($event, 499795668, 2087, 3.40)" class="betting-button pick-button " title="Ostersunds"&gt;
  
                                          &lt;span class="team"&gt;Ostersunds&lt;/span&gt;
                  &lt;span class="odd"&gt;3.40&lt;/span&gt;
      &lt;/a&gt;
  &lt;/li&gt;    &lt;/ul&gt;
              &lt;ul class="extra-picks"&gt;
                          &lt;li&gt;
                  &lt;a class="betting-button " href="/games/1390856/markets?league=0&amp;amp;top=0&amp;amp;sid=2087&amp;amp;sportId=1"&gt;
                      &lt;span class="short-desc"&gt;+13&lt;/span&gt;
                      &lt;span class="long-desc"&gt;View 13 more markets&lt;/span&gt;
                  &lt;/a&gt;
              &lt;/li&gt;
          &lt;/ul&gt;
          &lt;div class="game-stats"&gt;
                  &lt;a href="https://s5.sir.sportradar.com/sportpesa/en/match/13414729" onclick="window.open(this.href, 'newwindow', 'width=1024, height=800, resizable=yes, scrollbars=yes'); return false;"&gt;&lt;img class="img-responsive" src="/img/chart-icon.png?v2.2.25.2"&gt;&lt;/a&gt;
      &lt;/div&gt;
      &lt;div class="clear"&gt;&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>.............................................................</p>
  
  <pre><code>parser.py
  
  import requests
  import urllib2
  from bs4 import BeautifulSoup as soup
  udata = urllib2.urlopen('https://www.sportpesa.co.ke/?sportId=1')
  htmlsource = udata.read()
  ssoup = soup(htmlsource,'html.parser')
  page_div = ssoup.findAll("div",{"class":"match football FOOTBALL - HIGHLIGHTS"})
  
  print page_div
  </code></pre>