title: How to fetch/scrape all elements from a html "class" which is inside "span"?
body: <p>I am trying to <strong>scrape</strong> data from a website where i am collecting data from all elements under &quot;class&quot; which is inside &quot;span&quot; using this piece of code. But i am ending up in fetching only one element instead of all.</p>
  <pre><code>expand_hits = soup.findAll(&quot;a&quot;, {&quot;class&quot;: &quot;sold-property-listing&quot;})
  apartments = []
  for hit_property in expand_hits:
      #element = soup.findAll(&quot;div&quot;, {&quot;class&quot;: &quot;sold-property-listing__location&quot;})
      place_name = expand_hits[1].find(&quot;div&quot;, {&quot;class&quot;: &quot;sold-property-listing__location&quot;}).findAll(&quot;span&quot;, {&quot;class&quot;: &quot;item-link&quot;})[1].getText()
      print(place_name)
      apartments.append(final_str)
  </code></pre>
  <p>Expected result for print(place_name)</p>
  <pre><code>Stockholm
  Malmö
  Copenhagen
  ...
  ..
  .
  </code></pre>
  <p>The result which is am getting for print(place_name)</p>
  <pre><code>Malmö
  Malmö
  Malmö
  ...
  ..
  .
  </code></pre>
  <p>When i try to fetch the contents from expand_hits[1] i get only one element. If i don't specify the index  scraper is throwing an error regarding the usage find(), find_all() and findAll(). As far as i understood i think i have to call the content of the elements iteratively.</p>
  <p>Any help is much appreciated.
  Thanks in Advance!</p>