title: How to exclude an element with BeautifulSoup (Python)
body: <p>I am trying to extract the article text from this article (<a href="https://www.vanityfair.com/style/society/2014/06/monica-lewinsky-humiliation-culture" rel="nofollow noreferrer">https://www.vanityfair.com/style/society/2014/06/monica-lewinsky-humiliation-culture</a>) and exclude the legal container in the bottom. The text part seems easy, but can't seem to get rid of the container. I have separated it with the legal variable for easier use.</p>
  
  <p>Here is my code so far:</p>
  
  <pre><code>import requests
  from bs4 import BeautifulSoup
  
  base_url = 'https://www.vanityfair.com/style/society/2014/06/monica-lewinsky-humiliation-culture'
  r = requests.get(base_url)
  r_html = r.text
  soup = BeautifulSoup(r_html)
  
  legal = soup.find('div',{'class': 'legal-container'})
  
  paragraphs = soup.find_all('p')
  
  for text in paragraphs:
      print text.get_text()
  </code></pre>
  
  <p>How should I go about this?</p>