input: import requests
  from bs4 import BeautifulSoup 
  
  def get_headlines_from_news_site(url: str) -> List[str]:
      """ Scrape an online news website to get the headlines.
      >>> get_headlines_from_news_site("https://www.news.com/")
      ['First Headline', 'Second Headline', 'Third Headline']
      """
      # get the response in the form of html
      r = requests.get(url) 
  
      # create a beautifulsoup object to parse contents 
      soup = BeautifulSoup(r.content, 'html5lib') 
  
      # find headlines from the parsed page  
      headlines = soup.find_all('h2') 
  
      # Return the headlines as a list of strings
      return [headline.text for headline in headlines]
output:     # get the response in the form of html
      r = requests.get(url) 
  
      # create a beautifulsoup object to parse contents 
      soup = BeautifulSoup(r.content, 'html5lib') 
  
      # find headlines from the parsed page  
      headlines = soup.find_all('h2') 
  
      # Return the headlines as a list of strings
      return [headline.text for headline in headlines]