I would like to extract information from this url Radionomy.
http://radionomy.letoptop.fr/currentsong/get_api.php?radiouid=a2880b1c-2e83-4767-9804-8f3015978a38
I've been doing it with PHP but I consume many resources on the hosting, I'd do it with javascript, is there any way?
PHP:
<?php
$xml = @ simplexml_load_file('http://radionomy.letoptop.fr/currentsong/get_api.php?radiouid=a2880b1c-2e83-4767-9804-8f3015978a38');
foreach ($xml as $track){
$artiste = $track->artists;
$titre = $track->title;
}
?>
Basically what the PHP code is to extract the title information and cover art of what's playing on the radio at that time.
Thanks