title: How to clean HTML removing repeated paragraphs?
body: <p>I´m trying to clean an html file that has repeated paragraphs within body. Below I show the input file and expected output.</p>
  
  <p><strong>Input.html</strong>
  <a href="https://jsfiddle.net/97ptc0Lh/4/" rel="nofollow noreferrer">https://jsfiddle.net/97ptc0Lh/4/</a></p>
  
  <p><strong>Output.html</strong>
  <a href="https://jsfiddle.net/97ptc0Lh/1/" rel="nofollow noreferrer">https://jsfiddle.net/97ptc0Lh/1/</a></p>
  
  <p>I've been trying with the following code using BeautifulSoup but I don´t know why is not working, since the resultant list <code>CleanHtml</code> contains the repeated elements (paragraphs) that I´d like to remove.</p>
  
  <pre><code>from bs4 import BeautifulSoup
  
  fp = open("Input.html", "rb")
  soup = BeautifulSoup(fp, "html5lib")
  
  Uniques = set()
  CleanHtml = []
  
  for element in soup.html:
      if element not in Uniques:
          Uniques.add(element)
          CleanHtml.append(element)   
  
  print (CleanHtml)
  </code></pre>
  
  <p>May someone help me to reach this goal please.  </p>