title: CSS selector in Python BeautifulSoup
body: <p>I have built a very simple scraper looking at Airbnb listings. The goal is to go through a given site (i.e. <a href="https://www.airbnb.com/s/Copenhagen--Denmark/homes?allow_override%5B%5D=&amp;s_tag=kHqeQTpz&amp;section_offset=16" rel="nofollow noreferrer">this one</a>).</p>
  
  <pre><code>first_page = BeautifulSoup(requests.get("https://www.airbnb.com/s/Copenhagen--Denmark/homes?allow_override%5B%5D=&amp;s_tag=kHqeQTpz&amp;section_offset=1").text, 'html.parser')
  listings = first_page.find_all('div', 'listing-card-wrapper')
  for listing in listings:
      print(listing.select("#listing-15616363 &gt; div.infoContainer_v72lrv &gt; a &gt; div.ellipsized_1iurgbx &gt; div &gt; span:nth-child(1) &gt; span:nth-child(1)"))
  </code></pre>
  
  <p>The code correctly loops through the 18 elements on the page. However, it prints 18 empty arrays indicating that the listing.select statement is not working. I got the CSS tag from the Chrome Dev tools <em>copy selector</em> function.</p>