title: "How to find correct tags in nested HTML using Beautiful Soup, receiving list index out of range error or empty list"
body: <p>Printing out the tags under ('a') works perfectly to bring out the description for each of the houses on the website. Trying to replicate this for the price using any tag('price' for example) doesn't work. Printing out everything under 'master-content' reveals all details including the price. </p>
  
  <pre><code>from urllib.request import urlopen
  from bs4 import BeautifulSoup
  
  
  
  convert_page = 'https://www.property24.co.mu/property-for-sale'
  
  
  page = urlopen(convert_page)
  soup = BeautifulSoup(page, 'html.parser')
  
  
  name_box = soup.find('div', attrs={'class': 'master-content'})
  
  textContent = []
  
  
  try_again = name_box.find_all("price")
  
  print (try_again)
  
  
  house_name_list = soup.find(class_="resultsControl")
  
  
  
  house_descriptions = house_name_list.find_all('a')
  house_prices = house_name_list.find_all('price');
  </code></pre>
  
  <p>Output expected:</p>
  
  <pre><code>Rs 10 023 304
  
  Rs 46 697 000
  
  Rs 5 323 977
  </code></pre>
  
  <p>Output received:</p>
  
  <pre><code>[]
  </code></pre>
  
  <p>When trying to iterate over list:</p>
  
  <p>List out of index(due to list being empty)</p>