Parsing Google News RSS with PHP

后端 未结 3 797
逝去的感伤
逝去的感伤 2020-12-16 07:56

I want to parse Google News rss with PHP. I managed to run this code:



        
3条回答
  •  生来不讨喜
    2020-12-16 08:06

    I'd recommend checking out SimplePie. I've used it for several different projects and it works great (and abstracts away all of the headache you're currently dealing with).

    Now, if you're writing this code simply because you want to learn how to do it, you should probably ignore this answer. :)

提交回复
热议问题