title: BeautifulSoup get_text returns NoneType object
body: <p>I'm trying BeautifulSoup for web scraping and I need to extract headlines from this <a href="https://www.cnbc.com/finance/?page=1" rel="noreferrer">webpage</a>, specifically from the 'more' headlines section. This is the code I've tried using so far.</p>
  
  <pre><code>import requests
  from bs4 import BeautifulSoup
  from csv import writer
  
  response = requests.get('https://www.cnbc.com/finance/?page=1')
  
  soup = BeautifulSoup(response.text,'html.parser')
  
  posts = soup.find_all(id='pipeline')
  
  for post in posts:
      data = post.find_all('li')
      for entry in data:
          title = entry.find(class_='headline')
          print(title)
  </code></pre>
  
  <p>Running this code gives me ALL the headlines in the page in the following output format: </p>
  
  <pre><code>&lt;div class="headline"&gt;
  &lt;a class=" " data-nodeid="105372063" href="/2018/08/02/after-apple-rallies-to-1-trillion-even-the-uber-bullish-crowd-on-wal.html"&gt;
             {{{*HEADLINE TEXT HERE*}}}
  &lt;/a&gt; &lt;/div&gt;
  </code></pre>
  
  <p>However, if I use the get_text() method while fetching title in the above code, I only get the first two headlines. </p>
  
  <pre><code>title = entry.find(class_='headline').get_text()
  </code></pre>
  
  <p>Followed by this error: </p>
  
  <pre><code>Traceback (most recent call last):
    File "C:\Users\Tanay Roman\Documents\python projects\scrapper.py", line 16, in &lt;module&gt;
      title = entry.find(class_='headline').get_text()
  AttributeError: 'NoneType' object has no attribute 'get_text'
  </code></pre>
  
  <p>Why does adding the get_text() method only return partial results. And how do I solve it?</p>