Descompose URL in parts.
Project description
urld
URL descomposer to extract parts of url. It accepts urls by stdin and displays the parts in stdout.
Installation
From pypi:
pip install urld
Usage
By default, it splits the urls in their different parts:
$ echo "https://www.gitlab.com/Zer1t0?test=a#hey" | urld
https www.gitlab.com /Zer1t0 test=a hey
But can also specify the parts you would like to retrieve:
$ echo "https://www.gitlab.com/index.html" | urld -f host
www.gitlab.com
$ echo "https://www.gitlab.com/index.html" | urld -f protocol path
https /index.html
$ echo "https://www.gitlab.com/index.html" | urld -f extension
.html
$ echo "https://www.gitlab.com/?foo=bar" | urld -p foo
bar
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
urld-0.1.0.tar.gz
(3.0 kB
view hashes)
Built Distribution
urld-0.1.0-py3-none-any.whl
(15.8 kB
view hashes)