Python plugin with javascript, help?
#1
I am trying to grab the videos from hgtv.com. I can get a list of the shows, but when trying to get the videos from the shows, it uses javascript. I can get all the pertinent info, except where the video is in the source code.

For example: http://www.hgtv.com/hgtv/on_tv/player/0,...14,00.html

It looks like it should be in this section, but what do I do with this?

<div class="dynlead-vid-wrap">
<div id="vplayer-1"></div>
<script type="text/javascript">
// params: (playerid, channelid)
// player id needs to be unique for this page and match the div id above
var snap = new SNI.HGTV.Player.FullSize('vplayer-1','13090', '30114');
</script>
</div> <!-- /VID -->

Any and all help or pointing in the right direction would be helpful. Also please be kind in case this has already been answered. I searched for the last 30 mins here and google and did not find anything and this is my first plugin.
Reply
#2
there are tools to snoop the urls for the videos, think one is named "URL Snooper"
Reply
#3
hrcolb0 Wrote:I am trying to grab the videos from hgtv.com. I can get a list of the shows, but when trying to get the videos from the shows, it uses javascript. I can get all the pertinent info, except where the video is in the source code.

For example: http://www.hgtv.com/hgtv/on_tv/player/0,...14,00.html

It looks like it should be in this section, but what do I do with this?

<div class="dynlead-vid-wrap">
<div id="vplayer-1"></div>
<script type="text/javascript">
// params: (playerid, channelid)
// player id needs to be unique for this page and match the div id above
var snap = new SNI.HGTV.Player.FullSize('vplayer-1','13090', '30114');
</script>
</div> <!-- /VID -->

Any and all help or pointing in the right direction would be helpful. Also please be kind in case this has already been answered. I searched for the last 30 mins here and google and did not find anything and this is my first plugin.


This looks like the handshake of the RTMP stream:

Code:
fR}'Err@
LB]yr,|PCd\Wa*{% f|}b=8Zd)ra$|UOconnect?app7ondemand?_fcs_vhost=flash.scrippsnetworks.com&akmfv=1.7flashVerWIN 9,0,124,0swfUrl?http://common.scrippsnetworks.com/common/snap/snap-portable.swftcUrlNrtmp://76.7.66.93:1935/ondemand?_fcs_vhost=flash.scrippsnetworks.com&[email protected]@videoCodecs@ovideoFunction?pageUrlShttp://www.hgtv.com/hgtv/on_tv/player/0,1000145,HGTV_32663_3147_13091-30114,00.htmlobjectEncoding

Hope that helps.
Reply
#4
yeah, i got no clue. I guess i need to study more. thanks for the help anyway.
Reply

Logout Mark Read Team Forum Stats Members Help
Python plugin with javascript, help?0