Skip to content

Instantly share code, notes, and snippets.

@eridal
Created May 10, 2015 05:00
Show Gist options
  • Save eridal/7c9299624e70131eed2a to your computer and use it in GitHub Desktop.
Save eridal/7c9299624e70131eed2a to your computer and use it in GitHub Desktop.
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