Please Help!!!!
#1
Hi,

Is it possible to get the video url from this? If yes, please help me out. Thanks alot.
I get this from this site http://phim.xixam.com/xem-online/the-chi...5-1-8.html

<embed name="flashplayer" src="http://player4.xixam.com/player.swf" FlashVars="plugins=http://player.xixam.com/plugins52/captions.swf,http://player4.xixam.com/plugins2/proxy.swf&proxy.image=http://phim.xixam.com/images/screen_play.png&proxy.link=xixam*4cbb7b1c51055eb3ba8b42d2836f0e6eb9b7ca8944aa54b53b064f83bea385c62b3daf8d5bcf1ec5b06409c07b29606d371ae336f2a28d8c21f2220922c10d0d4e36ff363a39d84f6ebc563e625296da&proxy.nextlocation=http://phim.xixam.com/xem-online/the-chien-z-15275-2-8.html&repeat=list&autostart=true&volume=100" bgcolor="#000000" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="651" height="450" />
Reply
#2
Using Requests:
Code:
import requests

varPage = requests.get("http://phim.xixam.com/xem-online/the-chien-z-15275-1-8.html")
varPage.text
varUrl = extract(varPage.text, '"flashplayer" src="', '" FlashVars="plugins')

Using Urllib2:
Code:
from urllib2 import urlopen

varPage = urlopen("http://phim.xixam.com/xem-online/the-chien-z-15275-1-8.html").read()
varUrl = extract(varPage.text, '"flashplayer" src="', '" FlashVars="plugins')

Code:
def extract(text, startText, endText):
    start = text.find(startText, 0)
    if start != -1:
        start = start + startText.__len__()
        end = text.find(endText, start + 1)
        if end != -1:
            return text[start:end]
    return None

by the way it is untested but should work.
Reply
#3
Thanks. You already give me an idea how to solve it. I'll try to figure it out. Thanks again.
Reply
#4
I have another question. How to decode this
proxy.link=xixam*4cbb7b1c51055eb3ba8b42d2836f0e6eb9b7ca8944aa54b53b064f83bea​385c62b3daf8d5bcf1ec5b06409c07b29606d371ae336f2a28d8c21f2220922c10d0d4e36ff363a3​9d84f6ebc563e625296da
to get a real url to play the video. Thanks
Reply

Logout Mark Read Team Forum Stats Members Help
Please Help!!!!0