title: How to print out a list of all article titles using beautifulsoup
body: <p>I'm trying to print out a list of all the article titles in the Michigan Daily's Most Read Articles, as show on the <a href="https://www.michigandaily.com/section/opinion" rel="nofollow">opinion page</a>  and space out each article title with a blank line.</p>
  
  <p>This is what I have written right now, but the <code>class= "field-content"</code> is not narrow enough to grab just the titles in the Most Read box.</p>
  
  <pre><code>import requests
  from bs4 import BeautifulSoup
  
  base_url = 'http://www.michigandaily.com/section/opinion' 
  r = requests.get(base_url) 
  soup = BeautifulSoup(r.text, "html5lib") 
  for story_heading in soup.find_all(class_="field-content"):  
      if story_heading.a:  
          print(story_heading.a.text.replace("\n", " ").strip()) 
      # else:  
      #     print(story_heading.contents[0].strip())   
  </code></pre>
  
  <p>Any and all help is greatly appreciated and thank you in advance :)</p>