Hi,
I want to use feedapi to import productfeeds and to be able to tag the feeditems with available terms in the system. I have a productfeed working with Magpie but without Feedapi, so I can't benefit from the great taxonomy and node system of drupal.
Is somebody already building another parser for wrapping Magpie into FeedAPI or willing to help with this? Is somebody already doing this with Magicparser?
I am not that good a programmer, but are willing to help if we can mobilize a team to get into this.
Simplepie and the common parser are not getting the items out of the productfeeds I have.
Thanks a lot in advance for your reply!
greetings,
Martijn
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | parser_simplexml.patch | 6.96 KB | gzfelix |
Comments
Comment #1
summit commentedHi,
I found this parser on the internet: http://expressionengine.com/downloads/details/magpie_rss_atom_parser/
Could somebody please make a feedapi magpie parser from this code?
I am not enough a programmer to get it done. Simplepie has problems with the productfeeds I would like to use, but with magpie the feeds can be used. I want to use productfeeds to assist a development aid website aimed at nepal.
PS. This is maybe also interesting comparison: http://codeninja.de/simplepie_vs_magpie/
Please assist!
Thanks in advance!
greetings,
Martijn
Comment #2
ekes commentedI agree it's good to support another parser, but from this I'm not sure that's what you might necessarily need. For example how are you getting the information out of Magpie that you cannot out of SimplePie?
Most useful, it may help if you could you supply links to the feeds you are interested in pulling in?
Comment #3
summit commentedHi,
This feed for example I would like to pull in:
I have this feed working with magpie, but just php and not thorugh feedapi, so teaser length etc.. is ignored in Drupal.
Thanks for your quick reply!
Greetings,
Martijn
Comment #4
ekes commentedThe feed isn't an Atom or RSS feed. It is a XML feed, but one that meets a different set of rules than an Atom feed or so.
I guess that the parser you are talking about doesn't know the TradeTracker specific XML either and is just putting everything into an array or object and you are writing some custom PHP to interpret the data that is coming in. I'm guessing, so sorry if I'm wrong?
It may be possible for that feed, for you, to tailor the way you take it into Drupal so it works for you. If you are already getting it into Drupal I guess it's not going to be so much work.
The idea of integrating other generic feeds XML into the FeedAPI is interesting. I guess more often it would be something wanting a module for the services API that interacts with external sites. How does the TradeTracker system work, beyond the feed?
I think it might be desirable to make some generic base parser that can be built on for XML, common parser, iCal, imap etc... but I'll really have to formulate that properly before I could make a proper proposal.
Comment #5
ekes commentedComment #6
ekes commentedChanging to active without changing the title wasn't fair. I hope this change of title and category is!
Comment #7
summit commentedHi,
An XML parser as you described would be absolutely great! Will you be able to set a timeline for this?
greetings,
Martijn
Comment #8
alex_b commentedMartijn,
this is a pretty awesome feature request. Aron or I are not planning to move on this at the moment though. There might be others who are interested.
That said, writing your own SimpleXML based parser that meets your requirements should be very easy (you could use parser_common_syndication as a starting point).
If you have the time/resources to come up with a more generalized parser for non RSS/Atom feeds, it would be very much appreciated.
Cheers,
Alex
Comment #9
summit commentedHi Alex,
I am still thinking about this, but I am not a real programmer. I will try to start this with magpie instead op simplepie.
The problem is what needs to be changed to get magpie working instead of simplepie
Is it possible to make a small document what exactly needs to be changed in the code and where?
Then I will look into this in my spare time..
May be somebody wants to step in using magpie? I want to use magpie because I know a non-drupal solution for the datafeeds I would like to bring through feedapi. See this post for the non-drupal magpie solution: http://drupal.org/node/176843 . I am also asking this great guy to step in..
greetings,
Martijn
Comment #10
gzfelix commentedHi All,
I done a SimpleXML parser for this feature. I think I should submit it here. The parser reads an array of nodes wrapped by a feed tag. Please read README.txt for the format.
- Felix
Comment #11
gzfelix commented