PHP : lecture xml

Résolu/Fermé
StellairDEV Messages postés 25 Date d'inscription samedi 28 mars 2020 Statut Membre Dernière intervention 31 décembre 2020 - 22 mai 2020 à 21:05
StellairDEV Messages postés 25 Date d'inscription samedi 28 mars 2020 Statut Membre Dernière intervention 31 décembre 2020 - 25 mai 2020 à 18:33
Bonjour tout le monde,

je suis en train de réaliser une api en php et j'ai une page php qui doit lire un fichier xml jusqu’à la je m'en sort mais par contre dans mon fichier xml j'ai un élément nommé title que j'arrive a lire
mon code : $arr = array('videotitle' => $xml->entry[$i]->title) mais j'ai un deuxième élément donc je vous donne le code xml de l'element:
<media:thumbnail url="https://i3.ytimg.com/vi/fehNAqbREus/hqdefault.jpg" width="480" height="360"/> je ne sais pas comment lire url ?

qui pourrait m'expliquer comment on fait ?

Merci a ceux qui m'aiderons.
A voir également:

2 réponses

jordane45 Messages postés 38145 Date d'inscription mercredi 22 octobre 2003 Statut Modérateur Dernière intervention 25 avril 2024 4 650
25 mai 2020 à 14:52
<?php
error_reporting(E_ALL);

if (!extension_loaded('SimpleXML')) {
	echo 'not loaded';
} else {
	$url = "https://www.youtube.com/feeds/videos.xml?channel_id=UC2yA6TJSQ8S62iz1ls_lA0w";
  
  $context  = stream_context_create(array('http' => array('header' => 'Accept: application/xml')));

  $xml = file_get_contents($url, false, $context);
  $xml = simplexml_load_string($xml);

  foreach($xml->entry as $entry ){  
    $xmedia = $entry->children( 'media', True );
    
    
    $mediaArray = $xmedia->xpath('media:thumbnail');                                
    $media = end($mediaArray);                                                    
    $src   = $media->attributes()->url;
    
    $arr[] = array('videotitle' => $entry->title,'url'=>$src);
  }
    echo "<pre>";
    var_dump($arr);
    echo "</pre>";
}


1
StellairDEV Messages postés 25 Date d'inscription samedi 28 mars 2020 Statut Membre Dernière intervention 31 décembre 2020
25 mai 2020 à 18:33
merci jordane45 j'ai modifier un petit peux ton code pour mon utilisation est sa a marché :)
0
jordane45 Messages postés 38145 Date d'inscription mercredi 22 octobre 2003 Statut Modérateur Dernière intervention 25 avril 2024 4 650
23 mai 2020 à 08:47
Bonjour,

Il nous faudrait un exemple d'xml complet pour qu'on voit la structure exacte de celui ci.

0
StellairDEV Messages postés 25 Date d'inscription samedi 28 mars 2020 Statut Membre Dernière intervention 31 décembre 2020
23 mai 2020 à 10:38
tient voici le fichier xml que j'essaye de traiter :
feed xmlns:yt="http://www.youtube.com/xml/schemas/2015" xmlns:media="http://search.yahoo.com/mrss/" xmlns="http://www.w3.org/2005/Atom">
<link rel="self" href="http://www.youtube.com/feeds/videos.xml?channel_id=UC2yA6TJSQ8S62iz1ls_lA0w"/>
<id>yt:channel:UC2yA6TJSQ8S62iz1ls_lA0w</id>
<yt:channelId>UC2yA6TJSQ8S62iz1ls_lA0w</yt:channelId>
<title>jolate</title>
<link rel="alternate" href="https://www.youtube.com/channel/UC2yA6TJSQ8S62iz1ls_lA0w"/>
<author>
<name>jolate</name>
<uri>https://www.youtube.com/channel/UC2yA6TJSQ8S62iz1ls_lA0w</uri>
</author>
<published>2014-11-04T23:08:04+00:00</published>
<entry>
<id>yt:video:dKvHSGhmkZc</id>
<yt:videoId>dKvHSGhmkZc</yt:videoId>
<yt:channelId>UC2yA6TJSQ8S62iz1ls_lA0w</yt:channelId>
<title>MANEATER - REQUIN PRÉDATEUR DE L'OCEAN</title>
<link rel="alternate" href="https://www.youtube.com/watch?v=dKvHSGhmkZc"/>
<author>
<name>jolate</name>
<uri>https://www.youtube.com/channel/UC2yA6TJSQ8S62iz1ls_lA0w</uri>
</author>
<published>2020-05-22T18:27:09+00:00</published>
<updated>2020-05-22T21:23:23+00:00</updated>
<media:group>
<media:title>MANEATER - REQUIN PRÉDATEUR DE L'OCEAN</media:title>
<media:content url="https://www.youtube.com/v/dKvHSGhmkZc?version=3" type="application/x-shockwave-flash" width="640" height="390"/>
<media:thumbnail url="https://i1.ytimg.com/vi/dKvHSGhmkZc/hqdefault.jpg" width="480" height="360"/>
<media:description>Ma chaîne twitch :) https://www.twitch.tv/jolate jeux moins chère sur g2a avec le code JOLATE : https://www.g2a.com/?reflink=jolate-g2a Devenir membre youtube : http://urlz.fr/6nyW ► Abonne toi ici ─ http://bit.ly/2b1Ymd4 ► Instagram : https://www.instagram.com/jolateeee/?hl=fr ► Twitch ─ http://www.twitch.tv/jolate Ma deuxième chaîne : https://www.youtube.com/channel/UCAt9IKSwPNq7xcUDFK_itYw ► Les bon plans high tech Gearbest : http://urlz.fr/6Has Bangood : https://urlz.fr/9fao • Twitter ─ https://twitter.com/jolattt • Facebook ─ http://urlz.fr/6nzk → Discord ─ http://discord.gg/mqCuT7u #maneater #requin #ocean #prédateur</media:description>
<media:community>
<media:starRating count="805" average="4.92" min="1" max="5"/>
<media:statistics views="7694"/>
</media:community>
</media:group>
</entry>
<entry>
<id>yt:video:NK1XTSdQZyo</id>
<yt:videoId>NK1XTSdQZyo</yt:videoId>
<yt:channelId>UC2yA6TJSQ8S62iz1ls_lA0w</yt:channelId>
<title>SCRAP MECHANIC - SOFIANE FOU LE BORDEL DANS MA BASE !</title>
<link rel="alternate" href="https://www.youtube.com/watch?v=NK1XTSdQZyo"/>
<author>
<name>jolate</name>
<uri>https://www.youtube.com/channel/UC2yA6TJSQ8S62iz1ls_lA0w</uri>
</author>
<published>2020-05-20T17:13:09+00:00</published>
<updated>2020-05-21T03:28:43+00:00</updated>
<media:group>
<media:title>SCRAP MECHANIC - SOFIANE FOU LE BORDEL DANS MA BASE !</media:title>
<media:content url="https://www.youtube.com/v/NK1XTSdQZyo?version=3" type="application/x-shockwave-flash" width="640" height="390"/>
<media:thumbnail url="https://i3.ytimg.com/vi/NK1XTSdQZyo/hqdefault.jpg" width="480" height="360"/>
<media:description>Scrap mechanic Sofiane fou le bordel dans ma base Sofiane : https://www.youtube.com/channel/UCQBYSmXZLJmFhpUGFkNCpCw G2A -3% avec le code "JOLATE" https://www.g2a.com/r/jolate-g2a ► Abonne toi ici ─ http://bit.ly/2b1Ymd4 ► Instagram : https://www.instagram.com/jolateeee/?hl=fr ► Twitch ─ http://www.twitch.tv/jolate Ma deuxième chaîne : https://www.youtube.com/channel/UCAt9IKSwPNq7xcUDFK_itYw ► Les bon plans high tech Gearbest : http://urlz.fr/6Has Bangood : https://urlz.fr/9fao • Twitter ─ https://twitter.com/jolattt • Facebook ─ http://urlz.fr/6nzk Merci aux personnes qui me sponsor : http://urlz.fr/6nyW → Discord ─ http://discord.gg/mqCuT7u #scrapmechanic #scrap #mechanic #survie #coop</media:description>
<media:community>
<media:starRating count="2685" average="4.97" min="1" max="5"/>
<media:statistics views="19910"/>
</media:community>
</media:group>
</entry>
<entry>
<id>yt:video:ATL5KWcU3NI</id>
<yt:videoId>ATL5KWcU3NI</yt:videoId>
<yt:channelId>UC2yA6TJSQ8S62iz1ls_lA0w</yt:channelId>
<title>SCRAP MECHANIC - LA JOLATE MOBILE V2</title>
<link rel="alternate" href="https://www.youtube.com/watch?v=ATL5KWcU3NI"/>
<author>
<name>jolate</name>
<uri>https://www.youtube.com/channel/UC2yA6TJSQ8S62iz1ls_lA0w</uri>
</author>
<published>2020-05-18T13:45:48+00:00</published>
<updated>2020-05-18T14:49:55+00:00</updated>
<media:group>
<media:title>SCRAP MECHANIC - LA JOLATE MOBILE V2</media:title>
<media:content url="https://www.youtube.com/v/ATL5KWcU3NI?version=3" type="application/x-shockwave-flash" width="640" height="390"/>
<media:thumbnail url="https://i2.ytimg.com/vi/ATL5KWcU3NI/hqdefault.jpg" width="480" height="360"/>
<media:description>Scrap mechanic jolate mobile v2 G2A -3% avec le code "JOLATE" https://www.g2a.com/r/jolate-g2a ► Abonne toi ici ─ http://bit.ly/2b1Ymd4 ► Instagram : https://www.instagram.com/jolateeee/?hl=fr ► Twitch ─ http://www.twitch.tv/jolate Ma deuxième chaîne : https://www.youtube.com/channel/UCAt9IKSwPNq7xcUDFK_itYw ► Les bon plans high tech Gearbest : http://urlz.fr/6Has Bangood : https://urlz.fr/9fao • Twitter ─ https://twitter.com/jolattt • Facebook ─ http://urlz.fr/6nzk Merci aux personnes qui me sponsor : http://urlz.fr/6nyW → Discord ─ http://discord.gg/mqCuT7u #scrapmechanic "scrap #mechanic</media:description>
<media:community>
<media:starRating count="2660" average="4.93" min="1" max="5"/>
<media:statistics views="22929"/>
</media:community>
</media:group>
</entry>
<entry>
<id>yt:video:tNlBGUOEdWI</id>
<yt:videoId>tNlBGUOEdWI</yt:videoId>
<yt:channelId>UC2yA6TJSQ8S62iz1ls_lA0w</yt:channelId>
<title>STRANDED DEEP - ON CONSTRUIT UN RADEAU DE COMPETE !</title>
<link rel="alternate" href="https://www.youtube.com/watch?v=tNlBGUOEdWI"/>
<author>
<name>jolate</name>
<uri>https://www.youtube.com/channel/UC2yA6TJSQ8S62iz1ls_lA0w</uri>
</author>
<published>2020-05-16T16:28:46+00:00</published>
<updated>2020-05-17T12:08:58+00:00</updated>
<media:group>
<media:title>STRANDED DEEP - ON CONSTRUIT UN RADEAU DE COMPETE !</media:title>
<media:content url="https://www.youtube.com/v/tNlBGUOEdWI?version=3" type="application/x-shockwave-flash" width="640" height="390"/>
<media:thumbnail url="https://i1.ytimg.com/vi/tNlBGUOEdWI/hqdefault.jpg" width="480" height="360"/>
<media:description>Ma chaîne twitch :) https://www.twitch.tv/jolate Vos jeux moins chère sur g2a avec le code JOLATE : https://www.g2a.com/r/jolate-g2a Devenir membre youtube : http://urlz.fr/6nyW ► Abonne toi ici ─ http://bit.ly/2b1Ymd4 ► Instagram : https://www.instagram.com/jolateeee/?hl=fr ► Twitch ─ http://www.twitch.tv/jolate Ma deuxième chaîne : https://www.youtube.com/channel/UCAt9IKSwPNq7xcUDFK_itYw ► Les bon plans high tech Gearbest : http://urlz.fr/6Has Bangood : https://urlz.fr/9fao • Twitter ─ https://twitter.com/jolattt • Facebook ─ http://urlz.fr/6nzk → Discord ─ http://discord.gg/mqCuT7u #strandeddeep #survival #stranded #survie</media:description>
<media:community>
<media:starRating count="2380" average="4.97" min="1" max="5"/>
<media:statistics views="16301"/>
</media:community>
</media:group>
</entry>
<entry>
<id>yt:video:fehNAqbREus</id>
<yt:videoId>fehNAqbREus</yt:videoId>
<yt:channelId>UC2yA6TJSQ8S62iz1ls_lA0w</yt:channelId>
<title>LE RADEAU MAUDIT ! STRANDED DEEP</title>
<link rel="alternate" href="https://www.youtube.com/watch?v=fehNAqbREus"/>
<author>
<name>jolate</name>
<uri>https://www.youtube.com/channel/UC2yA6TJSQ8S62iz1ls_lA0w</uri>
</author>
<published>2020-05-15T16:18:52+00:00</published>
<updated>2020-05-15T16:18:53+00:00</updated>
<media:group>
<media:title>LE RADEAU MAUDIT ! STRANDED DEEP</media:title>
<media:content url="https://www.youtube.com/v/fehNAqbREus?version=3" type="application/x-shockwave-flash" width="640" height="390"/>
<media:thumbnail url="https://i3.ytimg.com/vi/fehNAqbREus/hqdefault.jpg" width="480" height="360"/>
<media:description>Stranded deep le radeau maudit royole moon en promo 200€ sur cdiscount : https://www.cdiscount.com/high-tech/casques-baladeur-hifi/royole-casque-de-video-3d-et-realite-virtuelle-moo/f-1065420-auc6939659010280.html#mpos=0|cd G2A -3% avec le code "JOLATE" https://www.g2a.com/r/jolate-g2a ► Abonne toi ici ─ http://bit.ly/2b1Ymd4 ► Instagram : https://www.instagram.com/jolateeee/?hl=fr ► Twitch ─ http://www.twitch.tv/jolate La chaîne de dead by ocb : https://www.youtube.com/channel/UC-P_6AvQOsQhkK_RAOatzeQ Ma deuxième chaîne : https://www.youtube.com/channel/UCAt9IKSwPNq7xcUDFK_itYw ► Les bon plans high tech Gearbest : http://urlz.fr/6Has Bangood : https://urlz.fr/9fao • Twitter ─ https://twitter.com/jolattt • Facebook ─ http://urlz.fr/6nzk Merci aux personnes qui me sponsor : http://urlz.fr/6nyW → Discord ─ http://discord.gg/mqCuT7u #strandeddeep #radeau #mer</media:description>
<media:community>
<media:starRating count="3172" average="4.97" min="1" max="5"/>
<media:statistics views="22049"/>
</media:community>
</media:group>
</entry>
<entry>
<id>yt:video:8Vvh5nVDZgw</id>
<yt:videoId>8Vvh5nVDZgw</yt:videoId>
<yt:channelId>UC2yA6TJSQ8S62iz1ls_lA0w</yt:channelId>
<title>SCRAP MECHANIC SURVIE - ATTAQUE DU GROS ROBOT ROUGE !</title>
<link rel="alternate" href="https://www.youtube.com/watch?v=8Vvh5nVDZgw"/>
<author>
<name>jolate</name>
<uri>https://www.youtube.com/channel/UC2yA6TJSQ8S62iz1ls_lA0w</uri>
</author>
<published>2020-05-13T15:52:30+00:00</published>
<updated>2020-05-17T14:51:47+00:00</updated>
<media:group>
<media:title>SCRAP MECHANIC SURVIE - ATTAQUE DU GROS ROBOT ROUGE !</media:title>
<media:content url="https://www.youtube.com/v/8Vvh5nVDZgw?version=3" type="application/x-shockwave-flash" width="640" height="390"/>
<media:thumbnail url="https://i1.ytimg.com/vi/8Vvh5nVDZgw/hqdefault.jpg" width="480" height="360"/>
<media:description>Scrap mechanic survie attaque du gros robot rouge G2A -3% avec le code "JOLATE" https://www.g2a.com/r/jolate-g2a ► Abonne toi ici ─ http://bit.ly/2b1Ymd4 ► Instagram : https://www.instagram.com/jolateeee/?hl=fr ► Twitch ─ http://www.twitch.tv/jolate La chaîne twitch de Théo : https://www.twitch.tv/theo23_officiel Ma deuxième chaîne : https://www.youtube.com/channel/UCAt9IKSwPNq7xcUDFK_itYw ► Les bon plans high tech Gearbest : http://urlz.fr/6Has Bangood : https://urlz.fr/9fao • Twitter ─ https://twitter.com/jolattt • Facebook ─ http://urlz.fr/6nzk Merci aux personnes qui me sponsor : http://urlz.fr/6nyW → Discord ─ http://discord.gg/mqCuT7u #scrapmechanic #scrap #mechanic</media:description>
<media:community>
<media:starRating count="2196" average="4.97" min="1" max="5"/>
<media:statistics views="21404"/>
</media:community>
</media:group>
</entry>
<entry>
<id>yt:video:HT_L4dUUdik</id>
<yt:videoId>HT_L4dUUdik</yt:videoId>
<yt:channelId>UC2yA6TJSQ8S62iz1ls_lA0w</yt:channelId>
<title>SCRAP MECHANIC SURVIE - UNE ÉNORME BASE AUTOMATIQUE ( c'est notre projet )</title>
<link rel="alternate" href="https://www.youtube.com/watch?v=HT_L4dUUdik"/>
<author>
<name>jolate</name>
<uri>https://www.youtube.com/channel/UC2yA6TJSQ8S62iz1ls_lA0w</uri>
</author>
<published>2020-05-12T15:32:44+00:00</published>
<updated>2020-05-16T13:53:35+00:00</updated>
<media:group>
<media:title>SCRAP MECHANIC SURVIE - UNE ÉNORME BASE AUTOMATIQUE ( c'est notre projet )</media:title>
<media:content url="https://www.youtube.com/v/HT_L4dUUdik?version=3" type="application/x-shockwave-flash" width="640" height="390"/>
<media:thumbnail url="https://i1.ytimg.com/vi/HT_L4dUUdik/hqdefault.jpg" width="480" height="360"/>
<media:description>Scrap mechanic survie - une énorme base automatique G2A -3% avec le code "JOLATE" https://www.g2a.com/r/jolate-g2a ► Abonne toi ici ─ http://bit.ly/2b1Ymd4 ► Instagram : https://www.instagram.com/jolateeee/?hl=fr ► Twitch ─ http://www.twitch.tv/jolate Ma deuxième chaîne : https://www.youtube.com/channel/UCAt9IKSwPNq7xcUDFK_itYw ► Les bon plans high tech Gearbest : http://urlz.fr/6Has Bangood : https://urlz.fr/9fao • Twitter ─ https://twitter.com/jolattt • Facebook ─ http://urlz.fr/6nzk Merci aux personnes qui me sponsor : http://urlz.fr/6nyW → Discord ─ http://discord.gg/mqCuT7u #scrapmechanic #base</media:description>
<media:community>
<media:starRating count="2731" average="4.96" min="1" max="5"/>
<media:statistics views="20116"/>
</media:community>
</media:group>
</entry>
<entry>
<id>yt:video:gEq0IGgnM-k</id>
<yt:videoId>gEq0IGgnM-k</yt:videoId>
<yt:channelId>UC2yA6TJSQ8S62iz1ls_lA0w</yt:channelId>
<title>LA JEANJEAN MOBILE - SCRAP MECHANIC !</title>
<link rel="alternate" href="https://www.youtube.com/watch?v=gEq0IGgnM-k"/>
<author>
<name>jolate</name>
<uri>https://www.youtube.com/channel/UC2yA6TJSQ8S62iz1ls_lA0w</uri>
</author>
<published>2020-05-11T07:41:17+00:00</published>
<updated>2020-05-11T15:31:20+00:00</updated>
<media:group>
<media:title>LA JEANJEAN MOBILE - SCRAP MECHANIC !</media:title>
<media:content url="https://www.youtube.com/v/gEq0IGgnM-k?version=3" type="application/x-shockwave-flash" width="640" height="390"/>
<media:thumbnail url="https://i4.ytimg.com/vi/gEq0IGgnM-k/hqdefault.jpg" width="480" height="360"/>
<media:description>Scrap mechanic survie , la jeanjean mobile , best of / ytp G2A -3% avec le code "JOLATE" https://www.g2a.com/r/jolate-g2a ► Abonne toi ici ─ http://bit.ly/2b1Ymd4 ► Instagram : https://www.instagram.com/jolateeee/?hl=fr ► Twitch ─ http://www.twitch.tv/jolate Ma deuxième chaîne : https://www.youtube.com/channel/UCAt9IKSwPNq7xcUDFK_itYw La vidéo originale : https://www.youtube.com/watch?v=2FPBPz-ZvgI ► Les bon plans high tech Gearbest : http://urlz.fr/6Has Bangood : https://urlz.fr/9fao • Twitter ─ https://twitter.com/jolattt • Facebook ─ http://urlz.fr/6nzk Merci aux personnes qui me sponsor : http://urlz.fr/6nyW → Discord ─ http://discord.gg/mqCuT7u #scrapmechanic #scrap #mechanic</media:description>
<media:community>
<media:starRating count="2705" average="4.93" min="1" max="5"/>
<media:statistics views="23293"/>
</media:community>
</media:group>
</entry>
<entry>
<id>yt:video:gdMj36rOdZ8</id>
<yt:videoId>gdMj36rOdZ8</yt:videoId>
<yt:channelId>UC2yA6TJSQ8S62iz1ls_lA0w</yt:channelId>
<title>STRANDED DEEP - COMBAT CONTRE LE CRABE GÉANT !</title>
<link rel="alternate" href="https://www.youtube.com/watch?v=gdMj36rOdZ8"/>
<author>
<name>jolate</name>
<uri>https://www.youtube.com/channel/UC2yA6TJSQ8S62iz1ls_lA0w</uri>
</author>
<published>2020-05-10T07:00:22+00:00</published>
<updated>2020-05-13T10:48:01+00:00</updated>
<media:group>
<media:title>STRANDED DEEP - COMBAT CONTRE LE CRABE GÉANT !</media:title>
<media:content url="https://www.youtube.com/v/gdMj36rOdZ8?version=3" type="application/x-shockwave-flash" width="640" height="390"/>
<media:thumbnail url="https://i4.ytimg.com/vi/gdMj36rOdZ8/hqdefault.jpg" width="480" height="360"/>
<media:description>Stranded deep ps4 / xbox / pc est un jeu de survie , combat contre le crabe géant ! G2A -3% avec le code "JOLATE" https://www.g2a.com/r/jolate-g2a ► Abonne toi ici ─ http://bit.ly/2b1Ymd4 ► Instagram : https://www.instagram.com/jolateeee/?hl=fr ► Twitch ─ http://www.twitch.tv/jolate Ma deuxième chaîne : https://www.youtube.com/channel/UCAt9IKSwPNq7xcUDFK_itYw ► Les bon plans high tech Gearbest : http://urlz.fr/6Has Bangood : https://urlz.fr/9fao • Twitter ─ https://twitter.com/jolattt • Facebook ─ http://urlz.fr/6nzk Merci aux personnes qui me sponsor : http://urlz.fr/6nyW → Discord ─ http://discord.gg/mqCuT7u #strandeddeep #survie #jeux</media:description>
<media:community>
<media:starRating count="3469" average="4.97" min="1" max="5"/>
<media:statistics views="24579"/>
</media:community>
</media:group>
</entry>
<entry>
<id>yt:video:VJbpZ2lN3lI</id>
<yt:videoId>VJbpZ2lN3lI</yt:videoId>
<yt:channelId>UC2yA6TJSQ8S62iz1ls_lA0w</yt:channelId>
<title>SCRAP MECHANIC SURVIE FR - NOUVELLE AVENTURE !</title>
<link rel="alternate" href="https://www.youtube.com/watch?v=VJbpZ2lN3lI"/>
<author>
<name>jolate</name>
<uri>https://www.youtube.com/channel/UC2yA6TJSQ8S62iz1ls_lA0w</uri>
</author>
<published>2020-05-09T07:00:09+00:00</published>
<updated>2020-05-09T16:53:19+00:00</updated>
<media:group>
<media:title>SCRAP MECHANIC SURVIE FR - NOUVELLE AVENTURE !</media:title>
<media:content url="https://www.youtube.com/v/VJbpZ2lN3lI?version=3" type="application/x-shockwave-flash" width="640" height="390"/>
<media:thumbnail url="https://i3.ytimg.com/vi/VJbpZ2lN3lI/hqdefault.jpg" width="480" height="360"/>
<media:description>Scrap mechanic survie fr nouvelle aventure G2A -3% avec le code "JOLATE" https://www.g2a.com/r/jolate-g2a ► Abonne toi ici ─ http://bit.ly/2b1Ymd4 ► Instagram : https://www.instagram.com/jolateeee/?hl=fr ► Twitch ─ http://www.twitch.tv/jolate Ma deuxième chaîne : https://www.youtube.com/channel/UCAt9IKSwPNq7xcUDFK_itYw ► Les bon plans high tech Gearbest : http://urlz.fr/6Has Bangood : https://urlz.fr/9fao • Twitter ─ https://twitter.com/jolattt • Facebook ─ http://urlz.fr/6nzk Merci aux personnes qui me sponsor : http://urlz.fr/6nyW → Discord ─ http://discord.gg/mqCuT7u #scrapmechanic #survie #scrap</media:description>
<media:community>
<media:starRating count="2562" average="4.95" min="1" max="5"/>
<media:statistics views="26078"/>
</media:community>
</media:group>
</entry>
<entry>
<id>yt:video:-O7nNm6FGdM</id>
<yt:videoId>-O7nNm6FGdM</yt:videoId>
<yt:channelId>UC2yA6TJSQ8S62iz1ls_lA0w</yt:channelId>
<title>LE ROUTIER DE L’EXTRÊME - SNOWRUNNER g29</title>
<link rel="alternate" href="https://www.youtube.com/watch?v=-O7nNm6FGdM"/>
<author>
<name>jolate</name>
<uri>https://www.youtube.com/channel/UC2yA6TJSQ8S62iz1ls_lA0w</uri>
</author>
<published>2020-05-08T10:06:26+00:00</published>
<updated>2020-05-08T10:06:27+00:00</updated>
<media:group>
<media:title>LE ROUTIER DE L’EXTRÊME - SNOWRUNNER g29</media:title>
<media:content url="https://www.youtube.com/v/-O7nNm6FGdM?version=3" type="application/x-shockwave-flash" width="640" height="390"/>
<media:thumbnail url="https://i2.ytimg.com/vi/-O7nNm6FGdM/hqdefault.jpg" width="480" height="360"/>
<media:description>Snowrunner le routier de l'extrême - logitech g29 G2A -3% avec le code "JOLATE" https://www.g2a.com/r/jolate-g2a ► Abonne toi ici ─ http://bit.ly/2b1Ymd4 ► Instagram : https://www.instagram.com/jolateeee/?hl=fr ► Twitch ─ http://www.twitch.tv/jolate Ma deuxième chaîne : https://www.youtube.com/channel/UCAt9IKSwPNq7xcUDFK_itYw ► Les bon plans high tech Gearbest : http://urlz.fr/6Has Bangood : https://urlz.fr/9fao • Twitter ─ https://twitter.com/jolattt • Facebook ─ http://urlz.fr/6nzk Merci aux personnes qui me sponsor : http://urlz.fr/6nyW → Discord ─ http://discord.gg/mqCuT7u #snowrunner #camion</media:description>
<media:community>
<media:starRating count="2250" average="4.94" min="1" max="5"/>
<media:statistics views="20402"/>
</media:community>
</media:group>
</entry>
<entry>
<id>yt:video:V8zrUyZDcJs</id>
<yt:videoId>V8zrUyZDcJs</yt:videoId>
<yt:channelId>UC2yA6TJSQ8S62iz1ls_lA0w</yt:channelId>
<title>SCRAP MECHANIC SURVIE FR - LE BATEAU DE L'ENFER !</title>
<link rel="alternate" href="https://www.youtube.com/watch?v=V8zrUyZDcJs"/>
<author>
<name>jolate</name>
<uri>https://www.youtube.com/channel/UC2yA6TJSQ8S62iz1ls_lA0w</uri>
</author>
<published>2020-05-07T07:09:47+00:00</published>
<updated>2020-05-16T17:55:27+00:00</updated>
<media:group>
<media:title>SCRAP MECHANIC SURVIE FR - LE BATEAU DE L'ENFER !</media:title>
<media:content url="https://www.youtube.com/v/V8zrUyZDcJs?version=3" type="application/x-shockwave-flash" width="640" height="390"/>
<media:thumbnail url="https://i3.ytimg.com/vi/V8zrUyZDcJs/hqdefault.jpg" width="480" height="360"/>
<media:description>Ma chaîne twitch :) https://www.twitch.tv/jolate Scrap mechanic moins chère ici avec le code "JOLATE" https://www.g2a.com/r/scrapjolate Devenir membre youtube : http://urlz.fr/6nyW ► Abonne toi ici ─ http://bit.ly/2b1Ymd4 ► Instagram : https://www.instagram.com/jolateeee/?hl=fr ► Twitch ─ http://www.twitch.tv/jolate Ma deuxième chaîne : https://www.youtube.com/channel/UCAt9IKSwPNq7xcUDFK_itYw ► Les bon plans high tech Gearbest : http://urlz.fr/6Has Bangood : https://urlz.fr/9fao • Twitter ─ https://twitter.com/jolattt • Facebook ─ http://urlz.fr/6nzk → Discord ─ http://discord.gg/mqCuT7u #scrapmechanicsurvival #survival</media:description>
<media:community>
<media:starRating count="5836" average="4.96" min="1" max="5"/>
<media:statistics views="55889"/>
</media:community>
</media:group>
</entry>
<entry>
<id>yt:video:P-J69c4MCRc</id>
<yt:videoId>P-J69c4MCRc</yt:videoId>
<yt:channelId>UC2yA6TJSQ8S62iz1ls_lA0w</yt:channelId>
<title>SCRAP MECHANIC SURVIE FR - MA FARM AUTOMATIQUE !!</title>
<link rel="alternate" href="https://www.youtube.com/watch?v=P-J69c4MCRc"/>
<author>
<name>jolate</name>
<uri>https://www.youtube.com/channel/UC2yA6TJSQ8S62iz1ls_lA0w</uri>
</author>
<published>2020-05-06T07:00:15+00:00</published>
<updated>2020-05-06T07:00:15+00:00</updated>
<media:group>
<media:title>SCRAP MECHANIC SURVIE FR - MA FARM AUTOMATIQUE !!</media:title>
<media:content url="https://www.youtube.com/v/P-J69c4MCRc?version=3" type="application/x-shockwave-flash" width="640" height="390"/>
<media:thumbnail url="https://i1.ytimg.com/vi/P-J69c4MCRc/hqdefault.jpg" width="480" height="360"/>
<media:description>Ma chaîne twitch :) https://www.twitch.tv/jolate Scrap mechanic moins chère ici avec le code "JOLATE" https://www.g2a.com/r/scrapjolate ► Abonne toi ici ─ http://bit.ly/2b1Ymd4 ► Instagram : https://www.instagram.com/jolateeee/?hl=fr ► Twitch ─ http://www.twitch.tv/jolate Ma deuxième chaîne : https://www.youtube.com/channel/UCAt9IKSwPNq7xcUDFK_itYw ► Les bon plans high tech Gearbest : http://urlz.fr/6Has Bangood : https://urlz.fr/9fao • Twitter ─ https://twitter.com/jolattt • Facebook ─ http://urlz.fr/6nzk → Discord ─ http://discord.gg/mqCuT7u #scrapmechanicsurvival #survival</media:description>
<media:community>
<media:starRating count="4544" average="4.96" min="1" max="5"/>
<media:statistics views="34032"/>
</media:community>
</media:group>
</entry>
</feed>


voila le code et donc je cherche a récupérer l'url media:thumbnail merci pour ta réponse rapide :)
0