murl

A tiny wrapper for the Python module urlparse
Download

murl Ranking & Summary

Advertisement

  • Rating:
  • License:
  • MPL
  • Price:
  • FREE
  • Publisher Name:
  • Berker Peksag
  • Publisher web site:
  • https://github.com/berkerpeksag/

murl Tags


murl Description

murl is a tiny wrapper for the Python module urlparse.InstallationTo install murl, simply: pip install murlUsagefrom murl import Urlurl = Url('https://bugzilla.mozilla.org/show_bug.cgi?id=698201#c0')print url.scheme, url.host, url.querystring, url.fragment# https bugzilla.mozilla.org id=698201 c0url.scheme = 'http'url.host = 'bugzilla.webkit.org'print urlprint url.urlprint url.schemeprint url.hostprint url.netlocprint url.host == url.netloc# http://bugzilla.webkit.org/show_bug.cgi?id=698201#c0# http://bugzilla.webkit.org/show_bug.cgi?id=698201#c0# http# bugzilla.webkit.org# bugzilla.webkit.org# Trueurl.path = 'list_bugs.cgi'print url.path, url.url# list_bugs.cgi http://bugzilla.webkit.org/list_bugs.cgi?id=698201#c0url.fragment = 'c1'print url.fragmentprint url.url# c1# http://bugzilla.webkit.org/list_bugs.cgi?id=698201#c1url.fragment = ''print url.fragmentprint url.url# ''# http://bugzilla.webkit.org/list_bugs.cgi?id=698201Product's homepage


murl Related Software