You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ID can be extracted from the last part in the URL (after the _) or in some places in the HTML code. The ID can then be appended to "https://www.riksdagen.se/api/videostream/get/" to get a JSON file that contains the video URL.
Example bash function that does the job:
function riksdagen {
json=https://www.riksdagen.se/api/videostream/get/$(echo $1 | sed 's/.*_//');
video=$(curl $json | jq -r '.videodata[0].streams.files[0].downloadfileurl');
mpv $video
}
The text was updated successfully, but these errors were encountered:
Checklist
Example URLs
Description
The ID can be extracted from the last part in the URL (after the _) or in some places in the HTML code. The ID can then be appended to "https://www.riksdagen.se/api/videostream/get/" to get a JSON file that contains the video URL.
Example bash function that does the job:
The text was updated successfully, but these errors were encountered: