RedHatEMEA / satools

18 stars 7 forks source link

RFE: sync videos from access.redhat.com #76

Open jim-minter opened 10 years ago

jim-minter commented 10 years ago

add videos found on access.r.c (such as https://access.redhat.com/site/videos/647843) List available on page https://access.redhat.com/search/browse/videos/#?

jfenal-zz commented 10 years ago

The nearly raw list can be found here: https://access.redhat.com/search/nodynamic/videos/

And using the node id in each URL, it is possible to get the video directly using http://access.redhat.com/site/node/${nodeid}/video/${videonumber} Where

Each page pointed from https://access.redhat.com/search/nodynamic/videos/ has pointers to the video, such as:

<source src="/site/node/445363/video/0" type="video/mp4" /> <source src="/site/node/445363/video/1" type="video/ogg" /> <source src="/site/node/445363/video/3" type="video/mp4" data-quality="hd" /> <source src="/site/node/445363/video/4" type="video/ogg" data-quality="hd" />

So either get blindly the video/${videonumber} links and follow redirects to get the actual videos, either get first the description page, and after get the videos we want (maybe not the HD ones).