Let’s say we have http://www.cwi.nl:80/%7Eguido/Python.html;a=2;b=3?c=4,2&d=e#anchor as our URL. Then these components will be the following:

  • scheme: URL scheme specifier (http)
  • domain: Network location part (www.cwi.nl:80)
  • path: Hierarchical path (/%7Eguido/Python.html)
  • params: Parameters for last path element (a=2;b=3)
  • query: Query component (c=4,2&d=e)
  • fragment: Fragment identifier (anchor)

For more information about these components you can check urllib’s description here.

default_scheme
[string, null]
default: "http"

URL Default Scheme. If you wish to add a scheme (http, https…) prefix to those urls that don’t have one, do it here. If you wish none to be added, use null instead.