Webmaster Help AwProfits
|
Welcome, Guest. Please login or register.
Did you miss your activation email?
Jul 06, 2008, 08:53:02 AM

Login with username, password and session length

Happiness is a perfume you cannot pour on others without getting a few drops on yourself.


- Ralph Waldo Emerson

|-   Entrepreneur Forum > Webmasters > Website Design and Maintenance > Programming
+   PeachRSS - Extensible and Lightweight RSS Parser Written in PHP
0 Members and 2 Guests are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: PeachRSS - Extensible and Lightweight RSS Parser Written in PHP  (Read 1132 times)
Online~Dave~

Joined: Jan 2006
Posts: 5806



Building a Foundation

View ProfileWWW~Dave~'s Squidoo Lens
Gender: MaleGemini United States
PeachRSS - Extensible and Lightweight RSS Parser Written in PHP
« on: Sep 16, 2007, 03:07:52 AM »


I'd like to take a moment to introduce you PHP programmers to the PeachRSS system. Peach is an RSS parser. Simple, lightweight, small footprint and easy to implement.

What is RSS?
If you have to ask that question, you're on the wrong thread.

What is PeachRSS?
The simplest, most lightweight *FREE* GPL RSS parser available

Why are you posting it here?
I'm the primary developer of PeachRSS. After years of developing solutions for companies such as IBM, Raymond James, Cantor Fitzgerald, and being a contributor to the Red Hat Linux project since 1993, I had a need for a lightweight, small footprint, easily integratable RSS parser.

What are you looking for?
I'm looking for co-developers to help extend the functionality of the original model through modules. If you're interested in joining the project, please PM me here. I love DigitalPoint forums and think it's the greatest thing since sliced bread. If I could find a few young programmers who could help extend the functionality, that is my goal. The poject will *aways* remain freeware because RSS/XML syndication is the future of the internet

How can I help?
You can help by downloading the software, and playing with it. I would greatly appreciate anybody who could integrate the original source code into easily installable "widgets" that work from publicly avaliable RSS sources.

What do I get out of it?
If you contribute significantly, you will be added to the PeachRSS team which could mean a star on your resume for future jobs, or just the vanity of saying you are a member of the development team.

Why are you using DigitalPoint as your discussion thread?
Again, I love this forum. I could easily bring up an SMF based forum for the PeachRSS project, but instead, I would much rather use this forum thread as the "official" thread of the project.

Are you using Sourceforge?
Contrary to popular belief, Sourceforge is full of junk projects. I would like to keep PeachRSS as clean, untainted and powerful as possible which is why I've chosen to release the software through DP forums and have the support thread here. The owners of this forum are unparallelled in the internet technology realm, and if PeachRSS is to be "the best", it's obvious to use the *best* technology source for this project.

Where can I get PeachRSS?
PeachRSS is freely available at http://www.peachrss.com/

Any developers interested in writing widgets and/or helping with the future of the code such as adding "caching", export to RSS modules, etc. Please contact me here on this thread. Also, you may post your wishlists here as well.

Cheers !!!

Dave



« Last Edit: Sep 16, 2007, 05:55:44 AM By: C4G-Dave » Logged

Latest Blog Post : 7 Reasons Most Affiliate Marketers Fail

OfflineAndyColemants
Ensign

Joined: Jul 2007
Posts: 28



View Profile
Cancer United States
Re: PeachRSS - Extensible and Lightweight RSS Parser Written in PHP
« Reply #1 on: Sep 17, 2007, 05:09:10 AM »
Hi Dave,

I have downloaded your script and it works good but I need an example for filtering items in a feed based on restricted words. Is this easy to do with peach ?

I see the example code

Code:
require('peachRSS.inc');

$peach = new peachRSS;
$fields = array("title", "pubDate", "description");
$num_items = $peach->fetch_feed("http://www.myblog.com/feed/", $fields);

echo Items: $num_items <br>";
echo "Generator: " . $peach->items['generator'] . "<br>";

for ($x=0; $x<$num_items; $x++){
echo $peach->items[$x]['title'] . "--" .
     $peach->items[$x]['pubDate'] . "<br>" .
     $peach->items[$x]['description'] . "<br>";
}

How can I use this to filter result on say the title having the word porn in it ? or how can I filter a set of restricted words? Will be the peach on a site for school kids and I need to make sure nothing dirty gets thru.

Thanks
Logged

Online~Dave~

Joined: Jan 2006
Posts: 5806



Building a Foundation

View ProfileWWW~Dave~'s Squidoo Lens
Gender: MaleGemini United States
Re: PeachRSS - Extensible and Lightweight RSS Parser Written in PHP
« Reply #2 on: Oct 21, 2007, 01:18:16 AM »
Hi Dave,

I have downloaded your script and it works good but I need an example for filtering items in a feed based on restricted words. Is this easy to do with peach ?

I see the example code

Code:
require('peachRSS.inc');

$peach = new peachRSS;
$fields = array("title", "pubDate", "description");
$num_items = $peach->fetch_feed("http://www.myblog.com/feed/", $fields);

echo Items: $num_items <br>";
echo "Generator: " . $peach->items['generator'] . "<br>";

for ($x=0; $x<$num_items; $x++){
echo $peach->items[$x]['title'] . "--" .
     $peach->items[$x]['pubDate'] . "<br>" .
     $peach->items[$x]['description'] . "<br>";
}

How can I use this to filter result on say the title having the word porn in it ? or how can I filter a set of restricted words? Will be the peach on a site for school kids and I need to make sure nothing dirty gets thru.

Thanks
 

You can just use a simple REGEX or regular expression to match posts that contain restricted words and filter them based on the rules you set. The simplest example might be as follows...

Code:
require('peachRSS.inc');

$peach = new peachRSS;
$fields = array("title", "pubDate", "description");
$num_items = $peach->fetch_feed("http://www.myblog.com/feed/", $fields);

echo Items: $num_items <br>";
echo "Generator: " . $peach->items['generator'] . "<br>";

for ($x=0; $x<$num_items; $x++){

        [color=Green]if  ( ( preg_match("/porn/", $peach->items[$x]['description'] ) ||  ( preg_match("/porn/", $peach->items[$x]['title'] ) ) next;[/color]
echo $peach->items[$x]['title'] . "--" .
     $peach->items[$x]['pubDate'] . "<br>" .
     $peach->items[$x]['description'] . "<br>";
}



The code in green is the code that will apply a filter for the word "porn", however, if somebody needs a list of words to be filtered it becomes a little more complicated because you can't use the PHP built-in function in_array() to filter results.

You brought up a good point for further development of the peachRSS platform. I'll have to take into account "blacklists" for specific terms that might need to be filtered.
Logged

Latest Blog Post : 7 Reasons Most Affiliate Marketers Fail

OfflineOzric
Lieutenant

Joined: Oct 2007
Posts: 62



View ProfileWWWOzric's Squidoo Lens
Gender: MaleVirgo United States
Re: PeachRSS - Extensible and Lightweight RSS Parser Written in PHP
« Reply #3 on: Nov 24, 2007, 12:10:54 AM »
The latest update you just released on the private e-mail developers list is totally awesome man. thanks for not putting it up for public download or spilling the beans about it yet. That was a good idea you had to keep the new functioning a secret for a while so not everybody uses the new tricks and gets it too public and noticed.

I'm glad I'm on your email subscriber list. I'm looking forward to next week, SEO WEEK as you say the SEO extravaganza !!

Keep up the good work Dave.  PeachRss v1.5 is wicked.   Evil
Logged

Latest Blog Post :

The Pod Depot
All iPod Accessories, All The Time!
Pages: [1] Print 
« previous next »
Jump to:  

Code4Gold MoneyMaker Forum | Powered by SMF.
© 2001-2005, Lewis Media. All Rights Reserved.

Code4Gold © 2006-2008 Resdaz Media LLC - All Rights Reserved

Copyscape

Top Performing Member Links :