input: Write a function to scrape a website for name and phone number.
  assert scrape("http://www.example.com") == {'John Doe': '123-456-7890', 'Jane Smith': '987-654-3210'}
  assert scrape("http://www.anotherexample.com") == {'Alice Brown': '555-123-4567', 'Bob Johnson': '444-987-6543'}
output: def scrape(url):
      import requests
      from bs4 import BeautifulSoup
  
      response = requests.get(url)
      soup = BeautifulSoup(response.content, 'html.parser')
  
      data = {}
      for contact in soup.find_all('div', class_='contact'):
          name = contact.find('span', class_='name').text
          phone = contact.find('span', class_='phone').text
          data[name] = phone
  
      return data