input: Write a python function to scrape product information from a given URL and return a list of dictionaries containing product name, price, and ratings.
  assert scrape_product_info('http://example.com/products') == [{'name': 'Product 1', 'price': '$10', 'ratings': '4.5'}, {'name': 'Product 2', 'price': '$20', 'ratings': '4.0'}]
  assert scrape_product_info('http://example.com/another-page') == [{'name': 'Product A', 'price': '$15', 'ratings': '5.0'}, {'name': 'Product B', 'price': '$25', 'ratings': '3.5'}]
output: def scrape_product_info(url):
      import requests
      from bs4 import BeautifulSoup
      
      response = requests.get(url)
      soup = BeautifulSoup(response.content, 'html.parser')
      
      products = []
      for product in soup.select('.product'):  # Assuming the product details are within a class named 'product'
          name = product.select_one('.product-name').text.strip()  # Assuming product name is within a class named 'product-name'
          price = product.select_one('.product-price').text.strip()  # Assuming product price is within a class named 'product-price'
          ratings = product.select_one('.product-ratings').text.strip()  # Assuming product ratings are within a class named 'product-ratings'
          products.append({'name': name, 'price': price, 'ratings': ratings})
          
      return products