Skip to main content

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


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.1.tar.gz (3.0 kB view hashes)

Uploaded Source

Built Distribution

urld-0.1.1-py3-none-any.whl (15.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page