PHPを使って、アメブロのRSSを取得する処理を作成したいと思っています。
取得自体はできるのですが、その中に時刻が含まれておらず困っています。
php
1$rss = simplexml_load_file("http://feedblog.ameba.jp/rss/ameblo/hogehoge"); 2echo "<pre>"; 3echo "<code>"; 4print_r($rss); 5echo "</code>"; 6echo "</pre>";
html
1// 出力結果 2SimpleXMLElement Object 3( 4 [channel] => SimpleXMLElement Object 5 ( 6 [title] => hogehoge 7 [link] => http://ameblo.jp/hogehoge/ 8 [description] => ほげほげ 9 [items] => SimpleXMLElement Object 10 ( 11 ) 12 13 ) 14 15 [item] => Array 16 ( 17 [0] => SimpleXMLElement Object 18 ( 19 [title] => ふがふが 20 [link] => http://ameblo.jp/hogehoge/entry-111111.html 21 [description] => SimpleXMLElement Object 22 ( 23 ) 24 25 ) 26 27 [1] => SimpleXMLElement Object 28 ( 29 [title] => ぴよぴよ 30 [link] => http://ameblo.jp/hogehoge/entry-222222.html 31 [description] => SimpleXMLElement Object 32 ( 33 ) 34 35 ) 36 37 . 38 . 39 . 40 以下、同様 41 42 ) 43 44)
RSSのパスがまた別に存在するのでしょうか。それとも取得するための処理が違うのでしょうか。
あるいは、そもそも時刻が含まれていないのでしょうか。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2016/04/26 03:27
退会済みユーザー
2016/04/26 03:32