2014-07-10, 19:44
Hello guys ,
I want to know how to extract a player from a website stream .
I need to go to url first then extract the player with a regex .
The stream source is not a rtmp , I think It 's a xml source .
I need a python script with a regex for extract this player from a url .
This is a player code found on the site :
<object type="application/x-shockwave-flash" data="/ptvFlash/unifiedplayer/adaptive_vod/release/UnifiedPlayer43.swf" width="960" height="540" id="videoPlayer" style="visibility: visible;"><param name="wmode" value="transparent"><param name="allowScriptAccess" value="always"><param name="base" value="/flash/unifiedplayer/"><param name="bgcolor" value="#000000"><param name="allowFullScreen" value="true"><param name="flashvars" value="configXML=/configXml/event/true&resourceLocalePath=/ptvFlash/unifiedplayer/assets/resources/&basePath=/&selectedBandwidth=med&eventId=95555&partnerId=4444&onStreamEndJSCall=playNextEvent&onStreamEventEndedJSCall=playNextEvent&setPlayerType=dvr&locale=fr_FR"></object>
Thanks
I want to know how to extract a player from a website stream .
I need to go to url first then extract the player with a regex .
The stream source is not a rtmp , I think It 's a xml source .
I need a python script with a regex for extract this player from a url .
This is a player code found on the site :
<object type="application/x-shockwave-flash" data="/ptvFlash/unifiedplayer/adaptive_vod/release/UnifiedPlayer43.swf" width="960" height="540" id="videoPlayer" style="visibility: visible;"><param name="wmode" value="transparent"><param name="allowScriptAccess" value="always"><param name="base" value="/flash/unifiedplayer/"><param name="bgcolor" value="#000000"><param name="allowFullScreen" value="true"><param name="flashvars" value="configXML=/configXml/event/true&resourceLocalePath=/ptvFlash/unifiedplayer/assets/resources/&basePath=/&selectedBandwidth=med&eventId=95555&partnerId=4444&onStreamEndJSCall=playNextEvent&onStreamEventEndedJSCall=playNextEvent&setPlayerType=dvr&locale=fr_FR"></object>
Thanks