Skip to content

Instantly share code, notes, and snippets.

@breyten
Created June 28, 2013 15:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save breyten/08d8780aa829b52ccd83 to your computer and use it in GitHub Desktop.
Save breyten/08d8780aa829b52ccd83 to your computer and use it in GitHub Desktop.
Gen the BNN TV gids
<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>
@arjan
Copy link

arjan commented Nov 7, 2013

volgens mij is hun api stuk! Ik krijg geen results op http://media.bnn.nl/menuvandaagbijbnn

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment