24, July 2008

rss parser script - webmaster forum

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP
Topic: rss parser script
« previous next »
Pages: [1] Print

Author Topic: rss parser script  (Read 1136 times)
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6280
38506 credits
Members referred : 374


It's time to use PHP5!


« on: Aug 17, 2006, 09:59:55 PM »

Hello,

I used until now magpie to parse RSS feeds, but just noticed that the project is not really active anymore.

what is a good (OOP) rss parser script (php4)?


Last blog : 4th of July Lottery from TemplateMonster.com
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 7975
40807 credits
Members referred : 3



« Reply #1 on: Aug 18, 2006, 12:22:38 PM »

Do you want to parse multiple feeds or just a specific one?

Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy

Last blog : MIA - Where Nick and Tim
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6280
38506 credits
Members referred : 374


It's time to use PHP5!


« Reply #2 on: Aug 18, 2006, 12:28:18 PM »

Do you want to parse multiple feeds or just a specific one?

(you was a little to fast, according my PM)
I'm using Magpie at the moment, there its possible to create multiple objects...
like
Code:
<?php
$rss 
fetch_rss("http://del.icio.us/rss/tag/PHP");
// and
$rss2 fetch_rss("http://del.icio.us/rss/tag/CSS");

I like to have a similar script...what about a pear project?


Last blog : 4th of July Lottery from TemplateMonster.com
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 7975
40807 credits
Members referred : 3



« Reply #3 on: Aug 18, 2006, 12:47:02 PM »

I am using magpiee too, it was looking the most promissing while I was searching for it, but you can allways can make some code of your own for parsing feeds Smiley

I will post some snippets when I will get back to office.

Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy

Last blog : MIA - Where Nick and Tim
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6280
38506 credits
Members referred : 374


It's time to use PHP5!


« Reply #4 on: Aug 18, 2006, 12:50:17 PM »

I am using magpiee too, it was looking the most promissing while I was searching for it, but you can allways can make some code of your own for parsing feeds Smiley

I will post some snippets when I will get back to office.


I like to use a 3rd party script because I don't need to invent a new wheel Wink it's about parsing standard RSS.

I have several problems with magpie and invalid code and try to solve this with a different class, by the way magpie is a little buggy....


Last blog : 4th of July Lottery from TemplateMonster.com
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 7975
40807 credits
Members referred : 3



« Reply #5 on: Aug 18, 2006, 12:52:49 PM »

Should we start our own open source class for this?

Just kidding I can't have time for this at this moment Sad

Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy

Last blog : MIA - Where Nick and Tim
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6280
38506 credits
Members referred : 374


It's time to use PHP5!


« Reply #6 on: Aug 18, 2006, 12:56:12 PM »

Should we start our own open source class for this?

Just kidding I can't have time for this at this moment Sad

I will check this two PEAR classes next:
http://pear.php.net/package/XML_Parser Visit through proxy (the basic xml class)
and
http://pear.php.net/package/XML_RSS/ Visit through proxy


Last blog : 4th of July Lottery from TemplateMonster.com
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 7975
40807 credits
Members referred : 3



« Reply #7 on: Aug 18, 2006, 01:07:51 PM »

Let us know your conclusions Wink

Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy

Last blog : MIA - Where Nick and Tim
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6280
38506 credits
Members referred : 374


It's time to use PHP5!


« Reply #8 on: Aug 18, 2006, 03:58:50 PM »

Pear might be OK but is the rss class is not wel documented... (took a lot of time to get this working, and I hate this slow pear server)

I found this class:
http://lastrss.webdot.cz/ Visit through proxy

that class looks OK is well documented but I'm asking me what happens if the files are "bigger"...

The good thing is that the script doesn't stop if the data between the nodes from the xml file is not valid...


Last blog : 4th of July Lottery from TemplateMonster.com
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=3726
Tags : open source xml rss snippets PEAR Bookmark this thread : Digg Del.icio.us Dzone more....

Topic sponsors:
Get a permanent link here for $1.99!


Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP
Topic: rss parser script
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
Jul 24, 2008, 11:25:53 PM





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!


Forum Statistics
Total Posts: 35.717
Total Topics: 7.379
Total Members: 3.710
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: prolist

48 Guests, 3 Users online :

11 users online today:



Readers

Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2008 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.