Need help to to extract video URL
#1
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
Reply
#2
Just FYI, link is geo-blocked, meaning it wont work from outside of India (atleast not in usa). as far as addon is concerened, check out code for my addons, I try to keep it very simple and it just may be what you are looking for.
Reply
#3
Hi yocoldrain, I was out of this forum for almost a year and coming back to spend some time to try few new addon. As advised, I looked into your addons and these are really helpful to make a start. Thanks for sharing the great work.
Reply
#4
If I may. How can you tell this is geo blocked from the url? Or did you just open it and find out from an error?
Reply

Logout Mark Read Team Forum Stats Members Help
Need help to to extract video URL0