input: Write a python function to scrape headlines, authors, dates, and links from a news website and store them in a SQLite database, then validate the insertion with assert statements.
  assert data_in_db("headline") == "Expected Headline"
  assert data_in_db("author") == "Expected Author"
  assert data_in_db("date") == "Expected Date"
  assert data_in_db("link") == "Expected Link"
output: import requests
  from bs4 import BeautifulSoup
  import sqlite3
  
  def scrape_and_store_news():
      # Scrape data from the news website
      url = 'https://example-news-website.com'
      response = requests.get(url)
      soup = BeautifulSoup(response.content, 'html.parser')
  
      # Extracting headlines, authors, dates, and links
      headlines = soup.find_all('h2', class_='headline')
      authors = soup.find_all('span', class_='author')
      dates = soup.find_all('time', class_='date')
      links = [a['href'] for a in soup.find_all('a', class_='link', href=True)]
  
      # Connect to SQLite database
      conn = sqlite3.connect('news.db')
      cursor = conn.cursor()
  
      # Create table if it doesn't exist
      cursor.execute('''CREATE TABLE IF NOT EXISTS news (
                          id INTEGER PRIMARY KEY,
                          headline TEXT,
                          author TEXT,
                          date TEXT,
                          link TEXT)''')
  
      # Insert data into the database
      for headline, author, date, link in zip(headlines, authors, dates, links):
          cursor.execute("INSERT INTO news (headline, author, date, link) VALUES (?, ?, ?, ?)",
                         (headline.get_text(), author.get_text(), date.get_text(), link))
  
      conn.commit()
  
      # Function to validate data in the database
      def data_in_db(column):
          cursor.execute(f"SELECT {column} FROM news ORDER BY id DESC LIMIT 1")
          result = cursor.fetchone()
          return result[0] if result else None
  
      # Assuming Expected Headline, Expected Author, Expected Date, and Expected Link are the expected values
      assert data_in_db("headline") == "Expected Headline"
      assert data_in_db("author") == "Expected Author"
      assert data_in_db("date") == "Expected Date"
      assert data_in_db("link") == "Expected Link"
  
      # Close the database connection
      conn.close()