input: def scrape_headlines(url: str) -> None:
      """ Scrape the headlines from a given online news website.
      >>> scrape_headlines("https://www.news.com/")
      (Prints the headlines)
      >>> scrape_headlines("https://www.anothernews.com/")
      (Prints the headlines)
      """
      import requests
      from bs4 import BeautifulSoup
  
      r = requests.get(url)
      soup = BeautifulSoup(r.content, 'html5lib')
      headlines = soup.find_all('h2')
  
      for headline in headlines:
          print(headline.text)
output:     for headline in headlines:
          print(headline.text)