title: How to filter the particular span class by BS4 of a wikipedia page?
body: <p>This <a href="https://ta.wikipedia.org/s/h6h" rel="nofollow noreferrer">Wikipedia page</a> contains two reference errors. You can find the reference errors as red sentences (reference serial number 6 and 95) just above at the bottom of the page.When i inspect the element, i find that i should extract the particular span class namely <code>&lt;span class="error mw-ext-cite-error"</code>How can i get the copy of the outer html of <code>&lt;span class="error mw-ext-cite-error</code>" data? </p>
  
  <p>The following code gives all the <code>&lt;span class&gt;</code> data. </p>
  
  <pre><code>from bs4 import BeautifulSoup
  import requests
  import csv
  
  getUrl= 'https://ta.wikipedia.org/s/h6h' 
  url = getUrl
  content = requests.get(url).content
  soup = BeautifulSoup(content,'lxml')
  heading = soup.title
  print(heading.text)
  #to get the specific li-interwiki-ta tag&lt;span class="error mw-ext-cite-error" 
  refError = soup.findAll ('span')
  print (refError)
  </code></pre>
  
  <p>how can i filter and get that the particular <code>&lt;span class="error mw-ext-cite-error</code> data?</p>