Ver Mensaje Individual
  #12 (permalink)  
Antiguo 05/04/2013, 23:38
Avatar de andresdzphp
andresdzphp
Colaborador
 
Fecha de Ingreso: julio-2011
Ubicación: $this->Colombia;
Mensajes: 2.749
Antigüedad: 12 años, 9 meses
Puntos: 793
Respuesta: Obtener Link con Dom Document php

Para ese caso usaría esto:

Código PHP:
Ver original
  1. <?php
  2.  
  3. $metas = get_meta_tags('http://actualidad.rt.com/video/actualidad/view/90981-japon-fukushima-agua-radiactivo');
  4. echo '<pre>';
  5. print_r($metas);
  6. echo '</pre>';

ahí está la url del video y más:

Cita:
Array
(
[keywords] =>

[description] =>

[twitter:site] => @ActualidadRT
[twitter:card] => player
[twitter:image] => http://esp.rt.com/actualidad/public_...7f_article.jpg
[twitter:player] => https://actualidad.rt.com/action/videoembed/90981
[twitter:player:width] => 435
[twitter:player:height] => 251
[twitter:player:stream] => http://actualidad.rt.com/actualidad/...598381136e.mp4
[twitter:player:stream:content_type] => video/mp4; codecs="avc1.42E01E, mpa.40.2"
)
__________________
Si sabemos como leer e interpretar el manual será mucho más fácil aprender PHP. En lugar de confiar en ejemplos o copiar y pegar - PHP