Advertisement
rfmonk

socket_gethostbyname_ex.py

Feb 8th, 2014
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.18 KB | None | 0 0
  1. #!/usr/bin/env python
  2.  
  3.  
  4. from urlparse import urlparse
  5.  
  6. url = 'http://netloc/path;param?query=arg#frag'
  7. parsed = urlparse(url)
  8. print parsed
  9. ##   whooo hooooooooooooo getttting drunk
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement