ibis.expr.api.StringValue.parse_url

StringValue.parse_url(arg, extract, key=None)

Returns the portion of a URL corresponding to a part specified by ‘extract’ Can optionally specify a key to retrieve an associated value if extract parameter is ‘QUERY’

Parameters:

extract : one of {‘PROTOCOL’, ‘HOST’, ‘PATH’, ‘REF’,

‘AUTHORITY’, ‘FILE’, ‘USERINFO’, ‘QUERY’}

key : string (optional)

Returns:

extracted : string

Examples

parse_url(“https://www.youtube.com/watch?v=kEuEcWfewf8&t=10”, ‘QUERY’, ‘v’) yields ‘kEuEcWfewf8’