title: I'm scraping a FAQ pages and I need to find which tag has answers in FAQ pages
body: <pre><code>import requests
  from bs4 import BeautifulSoup
  import numpy as np
  import pandas as pd                     
  import re
  req = requests.get('https://www.godrejproperties.com/nricorner/nri-faqs')
  soup = BeautifulSoup(req.text, "html5lib")
  
  ist1=[]
  for elem in soup(text=re.compile(r'\s*((?:how|How|Can|can|what|What|where|Where|describe|Describe|Who|who|When|when|Why|why|Should|should|is|Is|I|Do|do|Are|are|Will|will)[^.&lt;&gt;?]*?\s*\?)')):
      print elem.parent
      list1.append(elem.parent)
  
  x=str(list1[1])
  tag=x[x.find("&lt;")+1:x.find("&gt;")]
  print tag
  
  Ques = []
  for header in soup.find_all(tag):
      list_=[header]
      ffff=re.findall(r'\s*((?:how|How|Can|can|what|What|where|Where|describe|Describe|Who|who|When|when|Why|why|Should|should|is|Is|I|Do|do|Are|are|Will|will)[^.&lt;&gt;?]*?\s*\?)',str(list_))
      #print(ffff)
      #print (len(ffff))
      if len(ffff)&gt;0:
          Ques.append(ffff)
  Ques = np.array(Ques)
  print(Ques) 
  </code></pre>
  
  <h1>Similarly I need to find the answers in FAQ pages I need to create a algorithm which will capture in which tag answer is contained and get it's content and save it in a list. Later I need question and answer as a pair</h1>