i have php preg_match , curl script gets content of specific line , displays it.
http://cdadownloader.cf link. if paste in form e.g 5640653 scrape content of http://www.cda.pl/video/5640653, preg_match
preg_match_all("~^\s*file\s*:\s*'(.*?)',?\s*$~m", $source_code, $file);
will inside script tags line called " file "
file: 'http://vgra012.cda.pl/13495603584734.flv?st=s5o2o-ywjbpgols3glghgg&e=1453683496',
and contents in case
http://vgra009.cda.pl/13495603584734.flv?st=vu78-g3noin23uy_9-mkzq&e=1453683460
by using
substr($file[0][0], 23,-2)
the url displayed , used.
everything works fine ( download buttons not work still have problem headers works right click save )
now have added premium player uses variable store url , have no idea how contents
$f().setclip('http://vrbx098.cda.pl/vl73f1740f66221a2168a374b86409140d.mp4?st=d-wustoxzfd4e4ugaxw4qg&e=1453679326');
would able point me in right direction without unnecessary comments ? :) in advance
okay, think understand wanting. here try:
preg_match("~setclip\('(.*?)'~", $page_contents, $setclip_match); $setclip_url = $setclip_match[1];
Comments
Post a Comment