title: CertificateError: hostname 'www.wdylike.appspot.com' doesn't match
body: <p>I am doing the udacity course on learning python. Basically, this project is supposed to check for profanity in a file. We use the website "<a href="https://wdylike.appspot.com/?q=" rel="nofollow noreferrer">https://wdylike.appspot.com/?q=</a>" to do this. The website checks for profanity and prints a Boolean value if there is or is not profanity. Unfortunately, they taught the course in python 2.7 while I have python 3.5 and there are some changes. So, I am turning to you. Whenever I run the code below, I get an error. I will show the exact error below the code. </p>
  
  <pre><code>import urllib.request as urlr
  
  def read_text():
      quotes = open(r"C:\Users\setup\Documents\Sophomore Year\Math\Code_Help.txt")
      contents_of_file = quotes.read()
      print(contents_of_file)
      quotes.close()
      check_profanity(contents_of_file)
  
  def check_profanity(text_to_check):
      print(text_to_check)
      link = ("https://www.wdylike.appspot.com/?q=")
      connection = urlr.urlopen (link + text_to_check)
      output = connection.read()
      print(output)
      connection.close()
  
  read_text()
  </code></pre>
  
  <p>The error is:</p>
  
  <pre><code>CertificateError: hostname 'www.wdylike.appspot.com' doesn't match either of '*.appspot-preview.com', '*.appspot.com', '*.thinkwithgoogle.com', '*.withgoogle.com', '*.withyoutube.com', 'appspot-preview.com', 'appspot.com', 'thinkwithgoogle.com', 'withgoogle.com', 'withyoutube.com'
  </code></pre>
  
  <p>ADDITIONAL INFO:
  The file you see in (r"C:\Users\setup\Documents\Sophomore Year\Math\Code_Help.txt") is simply a text file with the word "ass" in it so as to trigger the profanity detector. </p>
  
  <p>Thanks for the help.</p>