-
-
Save breyten/08d8780aa829b52ccd83 to your computer and use it in GitHub Desktop.
Gen the BNN TV gids
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>BNN TV Gids</title> | |
</head> | |
<body> | |
<h1>BNN TV Gids</h1> | |
<?php | |
$data = json_decode(substr(file_get_contents('http://media.bnn.nl/menuvandaagbijbnn'), 22, -1)); | |
//print_r($data); | |
foreach($data->vandaag as $item) { | |
print "<div class=\"item\">"; | |
print '<h2><a href="'. $item->url .'">'. $item->titel .' ('. $item->zender .')</a></h2>'; | |
print "</item>"; | |
} | |
?> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
volgens mij is hun api stuk! Ik krijg geen results op http://media.bnn.nl/menuvandaagbijbnn