Internet Marketing Forum

Internet Marketing Forum


For Webmasters and Entrepreneurs
|
Welcome, Guest. Please login or register.
Did you miss your activation email?
Feb 04, 2012, 07:04:42 PM

Login with username, password and session length

I cannot give you the formula for success, but I can give you the formula for failure--which is: Try to please everybody.


- Herbert Bayard Swope

|-   Internet Marketing Forum > Online Business Discussions > Website Design and Maintenance > Programming
+  

PeachRSS - Extensible and Lightweight RSS Parser Written in PHP

0 Members and 1 Guest are viewing this topic.
Pages: [1] Reply to Thread
Author Topic: PeachRSS - Extensible and Lightweight RSS Parser Written in PHP  (Read 2236 times)
OfflineCode4Gold
Administrator
Code4Gold is a jewel in the roughCode4Gold is a jewel in the roughCode4Gold is a jewel in the roughCode4Gold is a jewel in the rough
Joined: Jan 2006
Posts: 6215


Avatar of Code4Gold

Administrator

View Code4Gold\s ProfileWWW
Gender: MaleGemini United States
notepad 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 : 8 Tips for Creating a Marketing Buzz

OfflineAndyColemants
Beginner
AndyColemants is on a distinguished road
Joined: Jul 2007
Posts: 28



View AndyColemants\s Profile
Cancer United States
notepad Sep 17, 2007, 05:09:10 AM #2
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

OfflineCode4Gold
Administrator
Code4Gold is a jewel in the roughCode4Gold is a jewel in the roughCode4Gold is a jewel in the roughCode4Gold is a jewel in the rough
Joined: Jan 2006
Posts: 6215


Avatar of Code4Gold

Administrator

View Code4Gold\s ProfileWWW
Gender: MaleGemini United States
notepad Oct 21, 2007, 01:18:16 AM #3
Quote from: AndyColemants 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
 

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.

Latest Blog Post : 8 Tips for Creating a Marketing Buzz

OfflineOzric
Junior Member
Ozric is on a distinguished road
Joined: Oct 2007
Posts: 69



View Ozric\s Profile
Gender: MaleVirgo United States
notepad 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.   Evil
Summer Savings! $7.49 .com domains at GoDaddy.com!
Pages: [1] Reply to Thread


Code4Gold Internet Marketing Forum © 2006-2011 Resdaz Media LLC - All Rights Reserved
Forum Software Powered by SMF - © 2001-2008, Lewis Media. All Rights Reserved.