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.2.tar.gz
(15.7 kB
view details)
Built Distribution
urld-0.1.2-py3-none-any.whl
(16.2 kB
view details)
File details
Details for the file urld-0.1.2.tar.gz
.
File metadata
- Download URL: urld-0.1.2.tar.gz
- Upload date:
- Size: 15.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 175cc873458cc4a77c502a2aff6cd5bf0bb1c48510f9cc7279da3771e1bcfadd |
|
MD5 | c703bab91c09f618e7eb2df14fcb47a7 |
|
BLAKE2b-256 | 7924055c56f0a207fc0684f75f7d9ffa536fd14ba5d109a8ec3605054651b57e |
File details
Details for the file urld-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: urld-0.1.2-py3-none-any.whl
- Upload date:
- Size: 16.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 10b3929448034d0ccc68d14cc83da1c26e312cc0fa9d9edbae2089d3bcb56068 |
|
MD5 | f4ab40f52a3b732623547d713768fffc |
|
BLAKE2b-256 | 248c142d686a738128645779132df4e629a10a6341c5d133d3bb5a8bcb09fb14 |