I am trying to parse 127.0.0.1:1234 with urlparse
urlparse('127.0.0.1:1234')
and it is giving me this result
ParseResult(scheme='127.0.0.1', netloc='', path='1234', params='', query='', fragment='')
I want 127.0.0.1 in netloc field.
How to do that?
You need to add a scheme before the URL,
httporhttps