Feeder
Feeder and it’s implementing classes are used to import a data source and format the data for the Parser module.
-
The Feeder interface is a model of how the data import should be implemented in order to successfully interact with the other modules and provide them with appropriately structured data
- The Feed class allows for more functionality in regards to how the data provided can be accessed
- The RssFeeder class implementing the Feeder interface, is a class which, using the `feedparser` library generates RSS feeds from a list of links in a given text file. The information retrieved from each feed is formatted as a `Feed` instance then stored in a data structure which other modules can easily access.
- The DocFeeder class implementing the Feeder interface, is a class which recursively accesses each file in a given directory. The information retrieved from each file is formated as `Feed` instances then stored in a data structure which other modules can easily access.