title: Trying to scrape Airbnb data
body: <p>So I'm trying to scrape some data from Airbnb (name, price, rating), I can print out variables such as price,name and rating but I want to put them in a dictionary. What am I missing?</p>
  <pre><code>import requests
  from bs4 import BeautifulSoup
  
  headers = {
      'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36'
  }
  
  url = 'https://www.airbnb.com/s/Tbilisi--Georgia/homes?tab_id=home_tab&amp;refinement_paths%5B%5D=%2Fhomes&amp;flexible_trip_dates%5B%5D=november&amp;flexible_trip_dates%5B%5D=october&amp;flexible_trip_lengths%5B%5D=weekend_trip&amp;date_picker_type=calendar&amp;query=Tbilisi%2C%20Georgia&amp;place_id=ChIJa2JP5tcMREARo25X4u2E0GE&amp;source=structured_search_input_header&amp;search_type=autocomplete_click'
  
  response = requests.get(url, headers=headers)
  
  soup = BeautifulSoup(response.content, 'lxml')
  
  
  
  for item in soup.find_all('div', itemprop='itemListElement'):
  
      try:
          price = item.find('span', class_='_krjbj').text
          rating = item.find('span', class_='_18khxk1').text
          name = item.find('meta', itemprop='name')['content']
      except Exception as e:
          house_list = {
              'price': price,
              'rating': rating,
              'name': name,
          }
          print(house_list)
  </code></pre>