input: Write a function that creates a web scraper in Python to extract hotel reviews from TripAdvisor. The function should define the URL and headers, make a request to get the HTML response, parse the HTML using BeautifulSoup, find all reviews, and extract the title and text of each review. The function should then print the title and text of each review, separated by a line of dashes.
  
  
  import requests
  from bs4 import BeautifulSoup
  
  def scrape_tripadvisor_reviews(url):
      headers = {'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'}
      
      # Make a request and get HTML in response
      response = requests.get(url, headers=headers)
      
      # Parse HTML
      soup = BeautifulSoup(response.text, 'html.parser')
      
      # Find all reviews
      reviews = soup.find_all('div', {'class': 'review-container'})
      
      # Go through every review and extract the data
      for review in reviews:
          # Get the title
          title = review.find('span', {'class': 'noQuotes'}).text
          
          # Get the text
          text = review.find('p', {'class': 'partial_entry'}).text
          
          # Print for demo
          print(title)
          print(text)
          print('-' * 50)
  
  # Test cases
  scrape_tripadvisor_reviews('https://www.tripadvisor.com/Hotel_Review-g60763-d1218720-Reviews-The_Standard_High_Line-New_York_City_New_York.html')
  
output: def scrape_tripadvisor_reviews(url):
      headers = {'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'}
      
      # Make a request and get HTML in response
      response = requests.get(url, headers=headers)
      
      # Parse HTML
      soup = BeautifulSoup(response.text, 'html.parser')
      
      # Find all reviews
      reviews = soup.find_all('div', {'class': 'review-container'})
      
      # Go through every review and extract the data
      for review in reviews:
          # Get the title
          title = review.find('span', {'class': 'noQuotes'}).text
          
          # Get the text
          text = review.find('p', {'class': 'partial_entry'}).text
          
          # Print for demo
          print(title)
          print(text)
          print('-' * 50)