from noodles.sources.test import TestSource
from noodles.sources.edgar import EdgarSource
from noodles.sources.openoil import OpenOilSource
from noodles.sources.allafrica import AllAfricaSource


SOURCES = {
    'test': TestSource,
    #'allafrica': AllAfricaSource,
    #'openoil': OpenOilSource,
    'edgar': EdgarSource
}


def extract(source):
    source = SOURCES[source](source)
    for document_id in source.extract():
        yield document_id

@@ -229,17 +229,16 @@
 ce,%0A    
-#
 'allafri
@@ -267,9 +267,8 @@
     
-#
 'ope

Enable all sources.