|
Pages: [1] |  |
|
|
Author
|
Topic: PeachRSS - Extensible and Lightweight RSS Parser Written in PHP (Read 1735 times)
|
    Joined: Jan 2006 Posts: 6213
On the Fast Track
 
 United States
|
Sep 16, 2007, 03:07:52 AM | #1 |

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 » | |
Latest Blog Post :
Are Alexa.com Ads by Pulse360-Kanoodle Violating FTC Truth in Advertising?
|
|
| |
|
|
|
    Joined: Jan 2006 Posts: 6213
On the Fast Track
 
 United States
|
Oct 21, 2007, 01:18:16 AM | #3 |
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 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...
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. |
|
Latest Blog Post :
Are Alexa.com Ads by Pulse360-Kanoodle Violating FTC Truth in Advertising?
|
|
|
 Joined: Oct 2007 Posts: 62
  
 United States
|
Nov 24, 2007, 12:10:54 AM | #4 |
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.  |
|
Latest Blog Post :
|
|
| |
|
|
Pages: [1]
|
|
|
 |