2012-09-16, 21:58
for few days i try ro understand vk.com videos direkt link..this page use XMLHttpRequest for real video and i dont know how to locate and capture that.
any body knows has knowlage about XMLHttpRequest and python...??
there is 2 request first response canlcel for a while second get the video but page adress dont change and page dont refresh...
until this week i can watch that movie with that code:
any body knows has knowlage about XMLHttpRequest and python...??
there is 2 request first response canlcel for a while second get the video but page adress dont change and page dont refresh...
until this week i can watch that movie with that code:
Code:
scan=re.compile('video_host = \'(.*?)/\';\nvar video_uid = \'(.*?)\';\nvar video_vtag = \'(.*?)\'').findall(link)
for a,b,c in scan:
print (a,b,c)
videoLink=a +'/u'+ b +'/video/' + c + '.360.mp4'
xbmctools.addVideoLink(videoTitle+' Part '+str(i),videoLink,'')