which feeds parser to pick?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
pedrotuga
Forum Contributor
Posts: 249
Joined: Tue Dec 13, 2005 11:08 pm

which feeds parser to pick?

Post by pedrotuga »

lastRSS and magpieRSS got the first position on google.

On pear there is XML_RSS but i dont think it suports atom

Magpie looked a bit simpler to use...

I need a perser that gets:

title
link
description
date updated

either date updated or the date of every single item so i can check if there is updates or not. I want to store the data in a database once a day rather than just show the last feed. I think i will usa a cronjob.

so... date comparison is important...

suport for rss up to 2.0 and atom is important.

wich parser should i use?
why?

thanks in advance for any opinion/sugestions.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

pedrotuga wrote:wich parser should i use?
wichever you like.
pedrotuga wrote:why?
it's your decision. Find one you like and use it.
User avatar
pedrotuga
Forum Contributor
Posts: 249
Joined: Tue Dec 13, 2005 11:08 pm

Post by pedrotuga »

ok, i was looking for sugestions and waiting for ppl to point me at aspects i eventually didnt think about...
of course the decision is allways mine....
i am just interested in know what advantages/disadvantages do they have.
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Post by Benjamin »

You may want to do a google search for X vs X and see what you find. I found this in about 4 seconds.

http://frenchfragfactory.net/ozh/archiv ... s-parsers/
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

You could always use a prefab script from an example, like I did with Kevin Yank's sitepoint example.
User avatar
pedrotuga
Forum Contributor
Posts: 249
Joined: Tue Dec 13, 2005 11:08 pm

Post by pedrotuga »

well.. it looks like magpie parses a lot more than lastrss but is a bit slower...

i am using magpie anyway cause its simpler IMHO.
Post Reply