title: Using BeautifulSoup to find multiple elements with the same CSS Class
body: <p>I'm trying to use BeautifulSoup's find_all() to search for elements that have the tag, "div" and the class, "wisbb_name". The HTML I'm scraping is from, <a href="http://www.foxsports.com/mlb/scores" rel="nofollow noreferrer">http://www.foxsports.com/mlb/scores</a>. My end goal is to take the names of all the pitchers that are starting for the day according to that website. The HTML of a pitchers name is below</p>
  
  <p><code>&lt;div class="wisbb_name"&gt;M. Fiers&lt;/div&gt;</code></p>
  
  <p>All pitchers HTML code has the same class just different text associated with it. I already use the line of code below to take all the results from find_all() and get the text associated with it.</p>
  
  <pre><code>for el in soup.find():
  print(el.get_text()) 
  </code></pre>
  
  <p>That works fine the problem is find_all() isn't finding the elements I want it to find, no matter how much I alter the parameters. According to BeautifulSoup <a href="https://www.crummy.com/software/BeautifulSoup/bs4/doc/#find-all" rel="nofollow noreferrer">documentation</a>, the line of code below should find the element that has class, "wisbb_name" and the tag, "div".</p>
  
  <pre><code>variable = soup.find_all("div", class_="wisbb_name")
  print(variable)
  </code></pre>
  
  <p>Upon printing variable, I just get an empty list. I'm not sure if I'm going about this the wrong way in python or I need to learn more about how HTML works. I have the latest version of BeautifulSoup and I'm using Python 3.6.2. My current full code is below. </p>
  
  <pre><code>import requests
  from bs4 import BeautifulSoup
  page = requests.get("url from top because I can't use 3 links")
  soup = BeautifulSoup(page.content, "lxml")
  for el in soup.find_all("div", class_="wisbb_name"):
      print(el.get_text())
  </code></pre>