Active
Project:
FeedAPI
Version:
6.x-1.7-beta3
Component:
Code feedapi (core module)
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
2 Dec 2009 at 22:07 UTC
Updated:
7 Dec 2009 at 17:54 UTC
Hi,
I need to parse the "description" text out of facebool iCal event (options->VEVENT->DESCRIPTION). This is a free multi-line text but somehow structured.
My questions is how do I parse the values into different fields?
Thanks!
Here is the text for example:
----
Host: Happy Days/ Happy Again
Venue:
Type: Music/Arts
Subtype: Opening
Description:
Bla bla 1
Bla bla 2
----
Comments
Comment #1
aron novakTo do this, you need to do some custom coding.
in FeedAPI, to do this, you need to write a wrapper parser around ical.
I do not know what you're trying to do, but consider using Feeds, it's much easier to achieve this via its well-designed OO architecture. And it also has an ical parser: http://drupal.org/node/614120
Comment #2
amir simantov commentedThanks Aron. I will consider indeed the feeds module. Anyway, I think I still have to right the code. Where should this be hooked or changed? Can you give me a clue?