Reputation: 26258
For joining, splitting and processing file and directory paths python's os.path
modul is great. Is there an equivalent for web urls?
Upvotes: 10
Views: 4086
Reputation: 73608
urlparse - Parse URLs into components, is the module for you..
To actually fetch urls & data, you need urllib2.
Upvotes: 13
Reputation: 3727
Hope this help :
http://docs.python.org/library/urlparse.html
http://docs.python.org/library/urllib2.html
Upvotes: 3