feedgenerator

A simple tool to create various feeds
git clone https://git.ortlepp.eu/feedgenerator.git/
Log | Files | Refs | README | LICENSE

__main__.py (650B)


      1 import sys
      2 from antenne_muenster import AntenneMuensterFeed
      3 from deutschlandfunk import DeutschlandfunkFeed
      4 from heise import HeiseFeed
      5 from common import Config
      6 
      7 returncodes = []
      8 config = Config()
      9 
     10 am_feed = AntenneMuensterFeed()
     11 returncodes.append(am_feed.create_feed(config.get_antennemuenster_file(), config.get_antennemuenster_items()))
     12 
     13 dlf_feed = DeutschlandfunkFeed()
     14 returncodes.append(dlf_feed.create_feed(config.get_deutschlandfunk_file(), config.get_deutschlandfunk_items()))
     15 
     16 heise_feed = HeiseFeed()
     17 returncodes.append(heise_feed.create_feed(config.get_heise_file(), config.get_heise_items()))
     18 
     19 if False in returncodes:
     20     sys.exit(1)