The <div> with id 'playxf' is updated via javascript from an XHR request. What you need to do is:
(1) Download the original page from your post:
http://diziport.com/gilmore_girls_4_sezon-izle/12_bolum/
In the source for the page, find the following section:
Code:
function billy()
{
islem("nesne.php","get","olay=sayac&sid=1c9c35a6f2ed8bf64befc13f7eb54b4c","playxf",false);
}
(2) You need to extract
Code:
olay=sayac&sid=1c9c35a6f2ed8bf64befc13f7eb54b4c
to build your new URL.
Your new URL will be similar to the following:
Code:
http://diziport.com/nesne.php?olay=sayac&sid=7c4a2711a6772a6d4b2cb3a2beef04a1
You need to add a Referer header or the site returns an HTTP 404.
Code:
Referer: http://diziport.com/kizim_nerede-izle/3_bolum/
now issue a GET request and from the returned source:
Code:
<div id="_playerContainer">Flash player\xfdn\xfdz g\xfcncel de\xf0il. L\xfctfen <a href="http://get.adobe.com/tr/flashplayer/" target="_blank" rel="nofollow">bu adresten</a> en son s\xfcr\xfcm\xfc indiriniz.</div> \n<script language="javascript" type="text/javascript"> \n var diziPortVid = new SWFObject("https://www.vidyoda.com/player/_vidyodaPlayer.swf", "_vidyodaPlayer" ,"567", "369", "10.0.0", "#000000");\n diziPortVid.addParam("allowfullscreen", "true");\n diziPortVid.addParam("allowscriptaccess", "always");\n diziPortVid.addParam("wmode", "transparent");\n diziPortVid.addParam(\'flashvars\', \'autoLoad=true&autoStart=false&channelID=WIMa1s2eh4E=&categoryID=hrGz0JHypH0=&strSource=http://video.ak.fbcdn.net/cfs-ak-snc6/78825/127/137133719679170_22061.mp4\');\n diziPortVid.write("_playerContainer");\n</script>
you can extract your mp4 URL.
Some sample code:
Code:
>>> import urllib2
>>> import re
>>> url = 'http://diziport.com/gilmore_girls_4_sezon-izle/12_bolum/'
>>> src = urllib2.urlopen(url).read()
>>> p = r'islem\("(?P<path>.+?)","get","(?P<qs>.+?)"'
>>> m = re.search(p, src)
>>> m.group('path')
'nesne.php'
>>> m.group('qs')
'olay=sayac&sid=1c9c35a6f2ed8bf64befc13f7eb54b4c'
>>> path = m.group('path')
>>> qs = m.group('qs')
>>> url2 = 'http://diziport.com/%s?%s' % (path, qs)
>>> req = urllib2.Request(url2)
>>> req.add_header('Referer', 'http://diziport.com/kizim_nerede-izle/3_bolum/')
>>> src2 = urllib2.urlopen(req).read()
>>> src2
'<div id="_playerContainer">Flash player\xfdn\xfdz g\xfcncel de\xf0il. L\xfctfen <a href="http://get.adobe.com/tr/flashplayer/" target="_blank" rel="nofollow">bu adresten</a> en son s\xfcr\xfcm\xfc indiriniz.</div> \n<script language="javascript" type="text/javascript"> \n var diziPortVid = new SWFObject("https://www.vidyoda.com/player/_vidyodaPlayer.swf", "_vidyodaPlayer" ,"567", "369", "10.0.0", "#000000");\n diziPortVid.addParam("allowfullscreen", "true");\n diziPortVid.addParam("allowscriptaccess", "always");\n diziPortVid.addParam("wmode", "transparent");\n diziPortVid.addParam(\'flashvars\', \'autoLoad=true&autoStart=false&channelID=WIMa1s2eh4E=&categoryID=hrGz0JHypH0=&strSource=http://video.ak.fbcdn.net/cfs-ak-snc6/78825/127/137133719679170_22061.mp4\');\n diziPortVid.write("_playerContainer");\n</script>'
>>> p2 = r'strSource=(.+?)\''
>>> m2 = re.search(p2, src2)
>>> m2.group(1)
'http://video.ak.fbcdn.net/cfs-ak-snc6/78825/127/137133719679170_22061.mp4'