How to send http request without scheme in python? -
enurl='res.iweshow.com' sr = requests.get(enurl) print(sr)
when send http request using requests module in python, here traceback:
raise invalidschema("no connection adapters found '%s'" % url)requests.exceptions.invalidschema: no connection adapters found
if intention use http, indicated in question, answer "add http scheme in".
use urlparse check if scheme absent url.
Comments
Post a Comment