View Full Version : PHP RSS Parser
Ian
Aug 7th 2005, 11:08 pm
Anyone have any simple PHP code to parse an RSS feed, most importantly one that allows you to both enable/disable descriptions and select the number of results to be shown? I can't seem to find one that works well and allows me to do this.
Ian
nevetS
Aug 7th 2005, 11:12 pm
There is magpie on sourceforge and Carp RSS by gecko tribe. There's also code for a php rss parser here in the forums that you can search for. I know Carp best myself, and it's very easy to enable/disable descriptions by just setting a variable before you output the feed.
dcristo
Aug 7th 2005, 11:12 pm
checkout Carp http://www.geckotribe.com/rss/carp/ it's pretty easy to setup.
dcristo
Aug 7th 2005, 11:14 pm
There is magpie on sourceforge and Carp RSS by gecko tribe. There's also code for a php rss parser here in the forums that you can search for. I know Carp best myself, and it's very easy to enable/disable descriptions by just setting a variable before you output the feed.
nevet, would u have any idea about my problem here:
http://forums.digitalpoint.com/showthread.php?t=23851 ?
checkout Carp http://www.geckotribe.com/rss/carp/ it's pretty easy to setup.
I tried that one, and it's a great script but I couldn't figure out how to set the number of items it returns. Do you have any insight on how to set that?
Thanks in advance!
Ian
dcristo
Aug 8th 2005, 7:08 am
I tried that one, and it's a great script but I couldn't figure out how to set the number of items it returns. Do you have any insight on how to set that?
Thanks in advance!
Ian
That's actually one thing I did figure out...
In the php code, include this line above the CarpCacheShow statement:
CarpConf('maxitems',10);
change the 10 to whatever you want to change the max items to.
cheers
xstorm
Aug 8th 2005, 7:36 am
thanks for the info on carp. useful for me :)
WhatiFind
Aug 8th 2005, 7:46 am
This code is very easy to use: http://forums.digitalpoint.com/showthread.php?t=7354&highlight=rss+easy
daed
Aug 18th 2005, 1:35 pm
I've been using MagpieRSS lately, seems to do an awesome job so far.. and I love the caching.
sarahk
Aug 18th 2005, 2:49 pm
Even the big systems use Magpie (http://magpierss.sourceforge.net/), it's highly recommended
Josh
Aug 18th 2005, 3:20 pm
Another great (very simple) one that I use for parsing daily-content RSS feeds and such,
http://www.globalsyndication.com/rss-parser
Josh
ferret77
Aug 18th 2005, 5:37 pm
rss fetch
allows you to set the number of results
sarahk
Aug 18th 2005, 5:39 pm
they all do that don't they?
dcristo
Aug 18th 2005, 6:18 pm
they all do that don't they?
Pretty much... I know carp does.
daed
Aug 18th 2005, 8:51 pm
Number of results? That can be done with 1 line of code in any programming language.
dcristo
Aug 18th 2005, 8:54 pm
Number of results? That can be done with 1 line of code in any programming language.
we're all techies :rolleyes:
SpeedyDomainRegistration
Aug 19th 2005, 9:45 pm
Magpie is the best that I've used so far.
Few php lines of codes needed to use and very flexible.
Another nice feature is that magpie cache the result so that you don't issue too many requests and upset the feed owner.
Highly recommended!
Magpie download at http://magpierss.sourceforge.net/
If you need example code on how to use it, let me know.
_________________
PHP Hosting (http://www.speedydomainregistration.com) | Pagerank Checker Tool (http://www.hifihosting.com/pagerank.php) | Free Web Hosting (http://www.freewebhostingdomain.com) | Web Master Resource Center (http://www.hifihosting.com)
SiCK
Sep 2nd 2005, 1:39 pm
http://www.feedforall.com/free-php-script.htm
I hacked it in 10 minutes and how do things like this:
showrss('http://search.msn.com/results.aspx?='.$keywordplus.'&format=rss', '
~~~BeginItemsRecord~~~
<A h ref="~~~ItemLink~~~">~~~ItemTitle~~~</A><br>
~~~ItemDescription~~~<BR>
<p>
~~~EndItemsRecord~~~
',10);
The 10 is the # of records to return
If you are a newbie programmer in PHP, it might take longer than 10 minutes to get something useful from this.
odditysoftware
Sep 2nd 2005, 7:51 pm
magpie is the easiest to impliment from my experiences.
drvo
Mar 5th 2007, 11:08 pm
I need help on MAGPIE installation, how to implement and integrate in the easiest way to some web page? Is there some easy tutorial for it ?
Thank you
fibonacci81
Mar 5th 2007, 11:49 pm
I think this is also what I've been looking for... Do you guys know any sites that are using either carp or magpie? Curious to see what it looks like and how it functions. I'm a Non-Techy... :(
Thx
sarahk
Mar 6th 2007, 1:40 am
I've got some examples at http://www.itamer.com/muck/rsstest.php
drvo
Mar 6th 2007, 4:36 am
@sarahk
How you integrate MAGPIE into you page ?
h4nh4n
Mar 6th 2007, 6:40 am
MAGPIE still live? I tried download many times on their website but what I got corrupt file.
I highly recommend carp, its easy to installed.
drvo
Mar 6th 2007, 9:42 am
I download CARP and test it .
It is very easy to integrate to the web page and very easy to use it .
sarahk
Mar 6th 2007, 12:38 pm
I've also been using Simplepie alot.
drvo, you're sorted now but if anyone needs a magpie download let me know.
Sarah
h4nh4n
Mar 6th 2007, 3:23 pm
if anyone needs a magpie download let me know.
Sarah
Can I get one please :)
sarahk
Mar 6th 2007, 3:51 pm
Just checked and it's still available from the official site: http://magpierss.sourceforge.net/
h4nh4n
Mar 6th 2007, 7:08 pm
Just checked and it's still available from the official site: http://magpierss.sourceforge.net/
I have tried many times, and always got the corrupt file.
sarahk
Mar 6th 2007, 11:12 pm
Mine opened fine, and compressed back as a .zip. Attached to this post.
h4nh4n
Mar 6th 2007, 11:23 pm
Mine opened fine, and compressed back as a .zip. Attached to this post.
this one great! Thanks sarah :)
fibonacci81
Mar 12th 2007, 11:49 am
sarahk thanks for the example. i was looking more towards script that function like this: http://cancernewsnow.com/
open to all: any thoughts on this?
thanks in advance.
vBulletin® v3.6.8, Copyright ©2000-2009, Jelsoft Enterprises Ltd.