fork download
  1. from urlparse import urlparse
  2.  
  3. print urlparse("http://178.162.210.65/").path
  4. print urlparse("http://178.162.210.65/").netloc.split(':')[0]
Success #stdin #stdout 0s 24632KB
stdin
Standard input is empty
stdout
/
178.162.210.65