Ver Mensaje Individual
  #1 (permalink)  
Antiguo 24/08/2018, 03:50
yopmail
 
Fecha de Ingreso: agosto-2014
Mensajes: 294
Antigüedad: 10 años, 7 meses
Puntos: 4
Exclamación Scrapping swf no funciona

Hola, estoy probando un código interesante llamado "PHP Simple HTML DOM Parser" lo que estaba probando es extraer los juegos de una pagina llamada http://www.juegosfriv2016.org/
Lo que estoy intentando es extraer la imagen del juego, titulo del juego y la URL .swf de <embed>

Código PHP:
require 'simple_html_dom.php';
$url 'http://www.juegosfriv2016.org/';
$html file_get_html$url );
$posts $html->find('div[class=game]');
foreach( 
$posts as $post ){
    
$link $post->find('a',0);
    
$url $link->attr['href'];
    
$title $link->innertext
    
$img $post->find('div[class=pres] img')->attr['src'];    
    
$swf $post->find('div[id=juegos-friv] img')->attr['src'];    
    echo 
$title,"<br/>",$img,"<br/>",$swf"<br/>";

En vez de titulo, sale imagen... y la url de imagen y url del .swf ni salen..

Resultado:




Alguna buena alma me ayuda?