简体   繁体   中英

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 web urls?

urlparse - Parse URLs into components, is the module for you..

To actually fetch urls & data, you need urllib2 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM