input: 
  def scrape_headlines(url: str) -> None:
      """ Scrapes news headlines from a given online news website.
      >>> scrape_headlines("https://www.news.com/")
      Travel industry sees surge in demand for hotel bookings
      New findings on global warming revealed
      ...
      """
      import requests
      from bs4 import BeautifulSoup 
  
      # 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:     import requests
      from bs4 import BeautifulSoup 
  
      # 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)