New feature : RSS parser.

Author Message

Xavier Dutoit

Friday 17 January 2003 1:49:44 am

Hello,

I think I confidend enough with the r 3.0 to try to design a new feature : an RSS parser.

What I plan to have is very much like the module on ez 2.x :
You have :
* news sites (a new class with the name and the url of the RSS feed... as attributes),
* category (exsiting class folder),
* news items (a new class with the title, the desc and an url as attribute).

I would then create a cronrss.php that will grab the rss feeds from the news sites, parse it (using ezXML lib) and create a new item object under the news source object (if it doesn't exist already).

I've got a few questions :

1) Does the feature exists already on r 3.0 and am I reinventing the wheel ?

2) How to share that ?
I will create my own classes with my attributes. It will have specific ids based on my own installation.
What if someone else wants to use it ? Are they going to need to create by hand the same template than the one I created and modify the code to alter the ids ?

X+

http://www.sydesy.com

Tony Wood

Friday 17 January 2003 2:42:59 am

Hi,

I have not made one, but its something i am looking at as a rest project, I am hoping it won't be too tough, i am guessing the SDK has alot of the tools we will need. I'll let you know if i get anywhere, as its a background project that has not started yet. I was hoping to use the SOAP interface to pick up the info and then parse to get the info.

I was going to wait until the full release of eZ3 before i started.

Let me know if you get anywhere with it.

Tony

> Hello,
>
> I think I confidend enough with the r 3.0 to try to design a
> new feature : an RSS parser.
>
> What I plan to have is very much like the module on ez 2.x
> :
> You have :
> * news sites (a new class with the name and the url of the
> RSS feed... as attributes),
> * category (exsiting class folder),
> * news items (a new class with the title, the desc and an
> url as attribute).
>
> I would then create a cronrss.php that will grab the rss
> feeds from the news sites, parse it (using ezXML lib) and
> create a new item object under the news source object (if it
> doesn't exist already).
>
> I've got a few questions :
>
> 1) Does the feature exists already on r 3.0 and am I
> reinventing the wheel ?
>
> 2) How to share that ?
> I will create my own classes with my attributes. It will
> have specific ids based on my own installation.
> What if someone else wants to use it ? Are they going to
> need to create by hand the same template than the one I
> created and modify the code to alter the ids ?
>
> X+

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 05:18:38
Script start
Timing: Jan 18 2025 05:18:38
Module start 'layout'
Timing: Jan 18 2025 05:18:38
Module start 'content'
Timing: Jan 18 2025 05:18:39
Module end 'content'
Timing: Jan 18 2025 05:18:39
Script end

Main resources:

Total runtime0.7410 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0065 587.9141152.6250
Module start 'layout' 0.00650.0035 740.539139.4609
Module start 'content' 0.01000.7294 780.0000545.7813
Module end 'content' 0.73940.0015 1,325.781312.1641
Script end 0.7409  1,337.9453 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.4535160.0002
Check MTime0.00130.1810160.0001
Mysql Total
Database connection0.00110.142310.0011
Mysqli_queries0.681291.9330540.0126
Looping result0.00050.0705520.0000
Template Total0.698294.220.3491
Template load0.00210.283420.0010
Template processing0.696193.938620.3480
Template load and register function0.00010.018210.0001
states
state_id_array0.00160.222310.0016
state_identifier_array0.00150.203920.0008
Override
Cache load0.00180.2461570.0000
Sytem overhead
Fetch class attribute can translate value0.00050.066420.0002
Fetch class attribute name0.00130.170740.0003
XML
Image XML parsing0.00100.128620.0005
class_abstraction
Instantiating content class attribute0.00000.000940.0000
General
dbfile0.00090.1281220.0000
String conversion0.00000.000840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 14
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs