Closed (fixed)
Project:
Feeds
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
19 Jul 2010 at 22:56 UTC
Updated:
11 Sep 2010 at 11:19 UTC
I'm importing an RSS feed from a sports website. Can I do any of the following:
If so, can an example, or a big hint be provided on how?
Comments
Comment #1
alex_b commentedFor these kinds of use cases I recommend creating your own custom processor plugin:
http://drupal.org/node/622700#pluginsapi
Comment #2
iantresman commentedThanks for the pointer. Nice documentation.
Comment #3
hanno commentedI use the Rules module to define conditional actions.
I have a rule that only publishes the feed item when a field has a certain value, otherwise, the feed item stays unpublished. Works perfect during importing. You could also build conditional actions to create nodes.
Comment #5
iantresman commentedJust for reference, there is a keyword filter for the older FeedAPI, see: FeedAPI Item Filter which includes a Keyword filter as standard. Hopefully it will be tweaked to work with Feeds.
Along the same lines, it would nice if there was also a taxonomy term filter which accept feed items if a category term was present, and set the appropriate term.
Comment #6
rbrownelli disagree with the creation of a custom parcer, for most people the reason why people switch to drupal is to avoid working with large amounts of PHP code. For me, saying 'create your own parcer' is a challenge in which i spend at least a week on.
Comment #7
iantresman commentedIf you could create your own parser without having to resort to PHP, it would keep everyone happy. eg. being able to select one of more fields, and compare them (equality, contains, less than, etc), with an option to use Regex, I think would cater to most.