input: Write a python function to automate web form filling using the requests library.
  assert fill_form('http://www.example.com', {'name': 'John', 'email': 'john@example.com'}) == True
  assert fill_form('http://www.invalidurl.com', {'name': 'John', 'email': 'john@example.com'}) == False
output: def fill_form(url, data):
      import requests
      try:
          response = requests.post(url, data=data)
          return response.status_code == 200
      except requests.exceptions.RequestException:
          return False