commafeed.py: retrieve entries

Also reorganized the code to facilitate expansion.