Cavetubeから情報を取得
APIがあるようだが、とりあえずRSSさえあれば事足りる?
APIはキーが必要。主にコメント機能に関するものらしい。
RSS
・ライブ配信一覧
http://rss.cavelis.net/index_live.xml
・直近のアーカイブ
http://rss.cavelis.net/index_archive.xml
・ライブ配信一覧+アーカイブ
http://rss.cavelis.net/index_all.xml
ライブ配信一覧からphpで情報取得
<?php $url = 'http://rss.cavelis.net/index_live.xml'; //CDATAを含むため、オプション指定が必須 $xml = simplexml_load_file($url,'SimpleXMLElement',LIBXML_NOCDATA); foreach($xml->entry as $item){ $title = $item->title; //タイトル $link = $item->link->attributes()->href; //配信URL $name = $item->author->name; //配信者名 $id = $item->id; //配信URL $summary = $item->summary; $content = $item->content; $updated = $item->updated; $published = $item->published; //配信開始時間? }