httpredirect answers ?
#1
hi i wanna add some extra movie to my plugin but i'm stuck little bit.

web site provide link to a php page (with facebook video link), this page convert link with some additions(security code etc.) and gives new link to video. but i cant read answers from php page.

i thing php page use httpredirect to go to new link.

First link
Code:
http://molasaati.com/molasaati.php?git=http://video.l3.facebook.com/cfs-l3-snc6/84256/929/200563656633207_48863.mp4

And response link
Code:
http://video.l3.fbcdn.net/cfs-l3-ash4/84256/929/200563656633207_48863.mp4?oh=90403ca4db9e6231ca173cfbe18d61d3&oe=4D9CB400&l3s=20110404113208&l3e=20110406114208&lh=07d2a8b3bf932b168a7d1


any advice ? and i'm not coder.just following wiki..help requested
Reply
#2
Thumbs Up 
Ok i find solution to continue my code. i hope it helps to someone..

bold parts help to read that Smile

url='http://www.sineman.net/jackass-3-d-hd-film-izle.html'
req = urllib2.Request(url)
req.add_header('User-Agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3')
response = urllib2.urlopen(req)
link=response.read()
response.close()
match=re.compile('<embed src="https://www.rolution.com/flash/player.swf\?file=(.+?)&').findall(link)
video = match[0]
resp = urllib2.urlopen(video)
url2 = resp.geturl()

print url2
Reply



Logout Mark Read Team Forum Stats Members Help
httpredirect answers ?0
This forum uses Lukasz Tkacz MyBB addons.