os.path equivalent for web urls in python?
For joining, splitting and processing file and directory paths python's os.path
modul is great. Is there an equivalent for we开发者_运维技巧b urls?
urlparse - Parse URLs into components, is the module for you..
To actually fetch urls & data, you need urllib2.
Hope this help :
http://docs.python.org/library/urlparse.html
http://docs.python.org/library/urllib2.html
精彩评论