-
Notifications
You must be signed in to change notification settings - Fork 7
Adding feeds
Alex Musayev edited this page Aug 24, 2020
·
18 revisions
How to add a new feed:
- Add new feed to
config/feeds.yml
- Create private group on https://candy.freefeed.net
- Create private group on https://freefeed.net
- Update group description and avatar
- Create or reuse processor class
- Create or reuse normalizer class
- Test new feed processing on candy.
- Test on production.
⚠️ Open public access for the new group.
Testing new feed:
feed = Feed.last
loader = LoaderResolver.call(feed)
loaded_data = loader.call(feed)
processor = ProcessorResolver.call(feed)
entities = processor.call(loaded_data.value!, feed)
entity = entities.value!.first
normalizer = NormalizerResolver.call(feed)
normalized = normalizer.call(entity.uid, entity.content, feed)
ap normalized.as_json
Test run for a specific feed:
bundle exec rails feeder:pull[einzelganger] jobs:workoff