-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prepend baseurl before following #9
Comments
Yes it is possible with xidel file.json -f 'transform($json()("url"), function($e){ concat("http://baseUrl.com", $e) })' -e ... |
That's a surprise. I thought transform would only work with XML. It is supposed to be done with the mapping operator
or
|
Well that solution looks way better. However: I am already done with my task :D. Thanks anyway! Is this documented somewhere? Also: Is there a way to retry requests, when they timeout? |
It is just XPath 3: https://www.w3.org/TR/xquery-30/#id-map-operator
--error-handling=xx=retry for an error code xx. Or xx for all 2 digit codes |
cool thanks! |
Is there a way to prepend the baseurl before every link before following? In my case I have relative links in a json file which I want to follow. I need to add the url to the links before I can follow them.
Is this even possible? Thats my command so far:
The text was updated successfully, but these errors were encountered: