02-22-2017, 03:58 AM
Latest vods:
TMT Hearing Coverage February 21, 2017 (Part 1) https://telvuepmd-a.akamaihd.net/vod/con...b7_600.mp4
TMT Hearing Coverage February 16, 2017 (Part 2) https://telvuepmd-a.akamaihd.net/vod/con...68_600.mp4
TMT Hearing Coverage February 16, 2017 (Part 1) https://telvuepmd-a.akamaihd.net/vod/con...67_600.mp4
TMT Hearing Coverage February 15, 2017 (Part 2) https://telvuepmd-a.akamaihd.net/vod/con...54_600.mp4
TMT Hearing Coverage February 15, 2017 (Part 1) https://telvuepmd-a.akamaihd.net/vod/con...80_600.mp4
The issue is you need to throw in all these headers into the page requests. I have put together a kludgy bash script that pulls down the last 20 items in the TMT playlist to /tmp/current_videos. I am running linux, it should work on Macs, you need to have curl to run the script.
TMT Hearing Coverage February 21, 2017 (Part 1) https://telvuepmd-a.akamaihd.net/vod/con...b7_600.mp4
TMT Hearing Coverage February 16, 2017 (Part 2) https://telvuepmd-a.akamaihd.net/vod/con...68_600.mp4
TMT Hearing Coverage February 16, 2017 (Part 1) https://telvuepmd-a.akamaihd.net/vod/con...67_600.mp4
TMT Hearing Coverage February 15, 2017 (Part 2) https://telvuepmd-a.akamaihd.net/vod/con...54_600.mp4
TMT Hearing Coverage February 15, 2017 (Part 1) https://telvuepmd-a.akamaihd.net/vod/con...80_600.mp4
quote:
Originally posted by TomK
Thanks, quasar, I might be interested in getting a copy of a script if you write one (and you don't mind letting me have a copy). What scripting language would it be?
The issue is you need to throw in all these headers into the page requests. I have put together a kludgy bash script that pulls down the last 20 items in the TMT playlist to /tmp/current_videos. I am running linux, it should work on Macs, you need to have curl to run the script.
quote:
#!/bin/bash
curl 'https://connect.telvue.com/api/vod/playlists/1992.json?player_access_key=v8ChcAR1AGw0J53eFhPiLqbUul6KHLI2' -H 'Origin: https://videoplayer.telvue.com' -H 'Accept-Encoding: gzip, deflate, sdch, br' -H 'Accept-Language: en-US,en;q=0.8' -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/55.0.2883.87 Chrome/55.0.2883.87 Safari/537.36' -H 'Accept: */*' -H 'Referer: https://videoplayer.telvue.com/player/v8...ceNumber=1&autostart=false&showtabssearch=true' -H 'Connect-Preshared-Key: e85fc8dbf6be4f22327da329cbd0de56d868b118028519eb14b4a68853ff845b64e6befdfd9138c2b51cc43d477baaaae3902a5a181c0f07f07c5a775a34a63b' -H 'Connection: keep-alive' --compressed | grep -Eo '"id":[0-9]{6}'|cut -c 6- > /tmp/vid_ids
rm /tmp/vid_items
for i in `cat /tmp/vid_ids|head -n 20`
do
curl "https://connect.telvue.com/api/vod/media/$i.json?player_access_key=v8ChcAR1AGw0J53eFhPiLqbUul6KHLI2" -H 'Origin: https://videoplayer.telvue.com' -H 'Accept-Encoding: gzip, deflate, sdch, br' -H 'Accept-Language: en-US,en;q=0.8' -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/55.0.2883.87 Chrome/55.0.2883.87 Safari/537.36' -H 'Accept: */*' -H 'Referer: https://videoplayer.telvue.com/player/v8...tart=false&showtabssearch=true' -H 'Connect-Preshared-Key: e85fc8dbf6be4f22327da329cbd0de56d868b118028519eb14b4a68853ff845b64e6befdfd9138c2b51cc43d477baaaae3902a5a181c0f07f07c5a775a34a63b' -H 'Connection: keep-alive' --compressed >> /tmp/vid_items;
done
rm /tmp/vid_titles
grep -Eo '"title":"[^"]+' /tmp/vid_items > /tmp/vid_titles
rm /tmp/vid_files
grep -Eo 'https://telvuepmd-a.akamaihd.net/vod/connect-vod/.{128}' /tmp/vid_items > /tmp/vid_files
paste /tmp/vid_titles /tmp/vid_files |cut -c 10- > /tmp/current_videos

