2015-10-03, 01:05
Hi,
I am very new to addon development and also to Python. I am trying to develop an addon which will play the video from the following URL -
url = 'http://colors.in.com/in/biggboss/videos/bigg-boss-halla-bol-day-26-january-30th-2015-10106818-2.html#nav'
with the following code, the HTML I get does not have any video URL like mp4, m3u8 etc
headers = {'User-Agent' : 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:32.0) Gecko/20100101 Firefox/32.0', 'Accept' : 'text/html,application/xml', 'Referer' : url}
opener = urllib2.build_opener()
urllib2.install_opener(opener)
request = urllib2.Request(url,None,headers)
response = urllib2.urlopen(request)
data = response.read()
response.close()
return data
If I do F12 in my Chrome browser while the video plays I can see the URLs like -
"http://vodcolors-vh.akamaihd.net/z/other_vods/20141117/midical_report-,256000,512000,712000,.mp4.csmil/2_a870b9d0fef60587_Seg1-Frag4?hdntl=exp=1443908498~acl=%2f*~data=hdntl~hmac=ad230a29edef9bed01d0d9cfc893b6da90cd7e6c702be9a418c6f4db873a1b33&jwstreamtype=hds&als=17.78,30,3.77,2,854,5235,30,4,0,36,f,6.3,183.12,f,s,XONWFNHSOGOS,3.6.0,36&hdcore=3.6.0&plugin=jwplayer-"
Any help to extract the video URL will be helpful to make my addon working
I am very new to addon development and also to Python. I am trying to develop an addon which will play the video from the following URL -
url = 'http://colors.in.com/in/biggboss/videos/bigg-boss-halla-bol-day-26-january-30th-2015-10106818-2.html#nav'
with the following code, the HTML I get does not have any video URL like mp4, m3u8 etc
headers = {'User-Agent' : 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:32.0) Gecko/20100101 Firefox/32.0', 'Accept' : 'text/html,application/xml', 'Referer' : url}
opener = urllib2.build_opener()
urllib2.install_opener(opener)
request = urllib2.Request(url,None,headers)
response = urllib2.urlopen(request)
data = response.read()
response.close()
return data
If I do F12 in my Chrome browser while the video plays I can see the URLs like -
"http://vodcolors-vh.akamaihd.net/z/other_vods/20141117/midical_report-,256000,512000,712000,.mp4.csmil/2_a870b9d0fef60587_Seg1-Frag4?hdntl=exp=1443908498~acl=%2f*~data=hdntl~hmac=ad230a29edef9bed01d0d9cfc893b6da90cd7e6c702be9a418c6f4db873a1b33&jwstreamtype=hds&als=17.78,30,3.77,2,854,5235,30,4,0,36,f,6.3,183.12,f,s,XONWFNHSOGOS,3.6.0,36&hdcore=3.6.0&plugin=jwplayer-"
Any help to extract the video URL will be helpful to make my addon working