urlparse.ParseResult

class urlparse.ParseResult[source]

Methods

__format__ default object formatter
__getnewargs__() Return self as a plain tuple.
__getstate__() Exclude the OrderedDict from pickling
__new__(_cls, scheme, netloc, path, params, ...) Create new instance of ParseResult(scheme, netloc, path, params, query, fragment)
__reduce__ helper for pickle
__reduce_ex__ helper for pickle
__repr__() Return a nicely formatted representation string
__sizeof__(() -> int) size of object in memory, in bytes
__subclasshook__ Abstract classes can override this to customize issubclass().
_asdict() Return a new OrderedDict which maps field names to their values
_make(iterable[, new, len]) Make a new ParseResult object from a sequence or iterable
_replace(_self, **kwds) Return a new ParseResult object replacing specified fields with new values
count(...)
geturl()
index((value, [start, ...) Raises ValueError if the value is not present.

Attributes

fragment Alias for field number 5
hostname
netloc Alias for field number 1
params Alias for field number 3
password
path Alias for field number 2
port
query Alias for field number 4
scheme Alias for field number 0
username