RSS フィードから情報を取得しようとしていますが、PHP と Jquery を使用して目的を達成できましたが、それを cron で処理したいと考えています。クローン付き。
SimpleXML_load_file を使用すると、すべてが含まれており、内部の属性<item>....</item>
と子を受け入れます。<a10:updated>
生飼料のセクションは次のとおりです。
SimpleXMLElement オブジェクト ( [@attributes] => 配列 ( [バージョン] => 2.0 )
[channel] => SimpleXMLElement Object
(
[title] => Bills from current Parliamentary Session
[link] => http://services.parliament.uk/bills
[description] => SimpleXMLElement Object
(
)
[item] => Array
(
[0] => SimpleXMLElement Object
(
[guid] => http://services.parliament.uk/bills/2013-14/finance.html
[link] => http://services.parliament.uk/bills/2013-14/finance.html
[category] => Array
(
[0] => Commons
[1] => Government Bill
)
[title] => Finance
[description] => A Bill To grant certain duties, to alter other duties, and to amend the law relating to the National Debt and the Public Revenue, and to make further provision in connection with finance.
)
[1] => SimpleXMLElement Object
(
[guid] => http://services.parliament.uk/bills/2013-14/humberbridge.html
[link] => http://services.parliament.uk/bills/2013-14/humberbridge.html
[category] => Array
(
[0] => Lords
[1] => Private Bill
)
[title] => Humber Bridge
[description] => A Bill to amend the constitution of the Humber Bridge Board and to confer new borrowing and other powers on it; to make new provision for the recovery of any deficit of the Board from local authorities in the area; to confer new powers for the setting and revision of tolls and to make other provision for and in connection with the operation of the bridge; and for connected purposes.
)
RSS フィードは次のとおりです: http://services.parliament.uk/bills/AllBills.rss
すべてを追加する生のRSSを取得する別の方法はありますか?