connection = urllib.request.urlopen("http://www.wdyl.com/profanity?q=" + text_to_check)
I don't know why but the code above is not working in python 3.5 and after several hours of searching i yet to find any answer for that. What i want to do is adding text_to_check string in the end of url
The error i'm receiving is:
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 400: Bad Request
text_to_checkwhen it fails?