0

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

3
  • You can do this with JS Retreive xml from Javascript Commented Jan 7, 2016 at 20:08
  • 1
    You can't do this with JS - Same Origin Policy Commented Jan 7, 2016 at 20:11
  • 1
    What have you tried so far? Specific questions are more likely to get helpful answers. Can you show some of the JavaScript that you've tried so far and where you are running into issues? Commented Jan 7, 2016 at 20:49

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.