XML
What jq
does for JSON, xq
does for XML:
# get all thumbnail URLs from YouTube channel RSS
curl 'https://www.youtube.com/feeds/videos.xml?channel_id=UCYO_jab_esuFRV4b17AJtAw' | xq -x "//*[name()='media:thumbnail']/@url"
What jq
does for JSON, xq
does for XML:
# get all thumbnail URLs from YouTube channel RSS
curl 'https://www.youtube.com/feeds/videos.xml?channel_id=UCYO_jab_esuFRV4b17AJtAw' | xq -x "//*[name()='media:thumbnail']/@url"