Skip to content

Adding feeds

Alex Musayev edited this page Sep 18, 2018 · 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:

name = 'the-atlantic-photos'
feed = Feed.for(name)
entities = Service::FeedLoader.load(name)
normalizer = Service::FeedNormalizer.for(feed)
entities.map { |e| normalizer.process(e[1]) }
Clone this wiki locally