Skip to content

Instantly share code, notes, and snippets.

@maeharin
Created April 20, 2012 03:25
Show Gist options
  • Save maeharin/2425667 to your computer and use it in GitHub Desktop.
Save maeharin/2425667 to your computer and use it in GitHub Desktop.
view yahoo japan daily news at command line (written by PHP)
#!/usr/local/bin/php
<?php
$url = 'http://rss.dailynews.yahoo.co.jp/fc/rss.xml';
$rss = simplexml_load_file($url);
foreach ($rss->channel->item as $v) {
echo $v->title . "\n";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment