from urlparse import urlparse print urlparse("http://178.162.210.65/").pathprint urlparse("http://178.162.210.65/").netloc.split(':')[0]
Standard input is empty
/ 178.162.210.65
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!