title: Delete repeated words in a row Python
body: <p>it turns out that I'm using beautifulsoup and when filtering in a table, I got the data as follows:</p>
  
  <pre><code>["&lt;td&gt;9111/2018 2222/18&lt;/td&gt;", '&lt;td style="font-size: small;"&gt;AINDUSTRIAL &lt;/td&gt;', 
   "&lt;td&gt;18-05-2018&lt;/td&gt;", "&lt;td&gt;Juz. 5 Posá&lt;td&gt;POSA&lt;/td&gt;&lt;/td&gt;", 
   "&lt;td&gt;POSA&lt;/td&gt;"]
  </code></pre>
  
  <p>I need to extract only the <code>"&lt;td&gt;"</code> that says <code>"Juz 5. Posá"</code> (although for what I'm doing, the name will vary) but I just need that column. I leave the code, since I managed to make the output is:</p>
  
  <pre><code>Juz. 5 PosáPOSA
  </code></pre>
  
  <p>I just need Juz. 5 Posá, but unfortunately I hit that other word. Then the code, of course, thank you very much!</p>
  
  <pre><code>soup = BeautifulSoup(html.text,from_encoding="utf-8")
  
  table = soup.findChildren('table')[0]
  for row in table.find_all("tr")[1:]:
      col = row.find_all("td")
      print(col[3].text.replace('\n',''))
      if not cells:
          continue
  </code></pre>