For the first time ever I was happy that the JSON version of RSS exists when I wanted to show the latest of my videos from PeerTube on my home page:
JSON.parse(open("https://tube.jeena.net/feeds/videos.json?accountId=3", &:read))["items"][0]["url"]
For the first time ever I was happy that the JSON version of RSS exists when I wanted to show the latest of my videos from PeerTube on my home page:
JSON.parse(open("https://tube.jeena.net/feeds/videos.json?accountId=3", &:read))["items"][0]["url"]
1 Reply
Are you aware of jq? curl 'https://tube.jeena.net/feeds/videos.json?accountId=3' | jq '.items[0].url' now
1 Like