Skip to content

Instantly share code, notes, and snippets.

@eridal
Created May 10, 2015
Embed
What would you like to do?
Noticias
<?php
$url = 'http://cdn01.ib.infobae.com/adjuntos/162/rss/Infobae.xml';
$xml = simplexml_load_string(
file_get_contents($url)
);
foreach ($xml->channel->item as $item) {
echo strip_tags($item->title);
echo strip_tags($item->description);
}
php noticias.php | espeak -v es
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment