|
|
|
|
|
by kjellsbells
1169 days ago
|
|
Pretty dang cool, but I might have missed a feature: can trurl do multiple manipulations on a single url, as opposed to a single manipulation on multiple urls (which the blog post says is supported)? For example, you want to apply a sequence of predefined normalization steps, such as removing the user part, converting http to https, etc etc. You put these steps in a file and then invoke trurl with that file and pointed at your url or urls. Very much like what you would do in sed, say. Possible? |
|
> $ trurl --url https://example.com --set path=/abc/123 --set scheme=ftp --set host=foo.bar
> $ ftp://foo.bar/abc/123