input: 
  import requests
  from bs4 import BeautifulSoup 
  
  def scrape_headlines(url: str) -> None:
      """
      Scrape an online news website to get the headlines.
      >>> scrape_headlines("https://www.news.com/")
      Technology Update: New AI Breakthrough
      Global Climate Change Conference
      Market Watch: Stocks Rise Amid Economic Uncertainty
      ...
      """
  
      # 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') 
  
      # Print the headlines 
      for headline in headlines: 
          print(headline.text)
  
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') 
  
      # Print the headlines 
      for headline in headlines: 
          print(headline.text)