input: from typing import List
  
  
  def extract_hotel_reviews(url: str, headers: dict) -> List[dict]:
      """ Extract hotel reviews from a given URL using web scraping. The reviews are
      expected to be inside div elements with class 'review-container'. Each review will be
      parsed and returned as a dictionary containing the title and the text.
      >>> extract_hotel_reviews('<url>', {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36'})
      [{'title': 'Excellent Stay', 'text': 'Very comfortable with great service.'}, {'title': 'Great Location', 'text': 'Perfect place to stay for our trip.'}]
      """
output:     import requests
      from bs4 import BeautifulSoup
  
      response = requests.get(url, headers=headers)
      soup = BeautifulSoup(response.content, 'html.parser')
      
      reviews = []
      for review_div in soup.find_all('div', class_='review-container'):
          title = review_div.find('h3').get_text(strip=True)
          text = review_div.find('p').get_text(strip=True)
          reviews.append({'title': title, 'text': text})
      
      return reviews