title: BeautifulSoup remove tags followed by specific tag and specific attribute
body: <p>I'm new in this world of web scraping and so far I've been amazed with BeautifulSoup. However, there's something I wasn't able to do.</p>
  
  <p>What I want to do is to remove some tags which are followed with some specific tag and specific attribute.</p>
  
  <p>Let me show you:</p>
  
  <pre><code>#Import modules
  from bs4 import BeautifulSoup
  import requests
  
  #Parse URL
  url = "http://www.soccervista.com/Italy-Serie_A-2016_2017-845699.html"
  r = requests.get(url)
  data = r.text
  soup = BeautifulSoup(data, 'html.parser')
  
  #This is the table which I want to extract
  table = soup.find_all('table')[4]
  </code></pre>
  
  <p>After obtaining the correct table which I want to manipulate, there are some 'tr' tags which are followed by 'td' and attribute 'colspan'</p>
  
  <p>What I finally want is to remove those specific 'tr' because there are more 'tr' tags which I need.</p>
  
  <p>The total of 'td' with 'colspan' attribute are 3:</p>
  
  <pre><code>#Output for 'td' with 'colspan'
  
  print(table.select('td[colspan]'))
  
  [&lt;td colspan="13"&gt;&lt;img height="10" src="/imgs/line.png" width="100%"/&gt;&lt;/td&gt;,
   &lt;td colspan="13"&gt;&lt;img height="10" src="/imgs/line.png" width="100%"/&gt;&lt;/td&gt;,
   &lt;td colspan="13"&gt;&lt;img height="10" src="/imgs/line.png" width="100%"/&gt;&lt;/td&gt;]
  </code></pre>
  
  <p>And here is a extract from the HTML and one example of the specific 'tr' which I want to remove (Inserted a Note below saying "#THIS ONE!"):</p>
  
  <pre><code> &lt;td align="center"&gt;
      2:1
     &lt;/td&gt;
     &lt;td class="one"&gt;
      AC Milan
     &lt;/td&gt;
     &lt;td&gt;
      &lt;a href="/Cagliari-AC_Milan-2320071-2320071.html"&gt;
       &lt;img alt="More details about  -  soccer game" border="0" height="14" src="/imgs/detail3.gif" width="14"/&gt;
      &lt;/a&gt;
     &lt;/td&gt;
    &lt;/tr&gt;
    ***&lt;tr class="predict"&gt; ------------- &gt;&gt;&gt; **#THIS ONE!*****
     &lt;td colspan="13"&gt;
      &lt;img height="10" src="/imgs/line.png" width="100%"/&gt;
     &lt;/td&gt;
     &lt;tr class="predict"&gt;
      &lt;td&gt;
       27 May
      &lt;/td&gt;
      &lt;td&gt;
       38
      &lt;/td&gt;
      &lt;td&gt;
       FT
      &lt;/td&gt;
      &lt;td align="right" class="one"&gt;
  </code></pre>
  
  <p>By the way, I would like to remove 'td colspan' and 'img' as well.</p>
  
  <p>Any ideas?</p>
  
  <p>*Python latest version installed</p>
  
  <p>*BeautifulSoup module latest version installed</p>