initial commit for the-great-escape yuku scraper
This commit is contained in:
10
tge/outputters/__init__.py
Normal file
10
tge/outputters/__init__.py
Normal file
@@ -0,0 +1,10 @@
|
||||
from . import json
|
||||
|
||||
outputters = [json]
|
||||
|
||||
def get_outputter (name):
|
||||
for outputter in outputters:
|
||||
if outputter.__name__.endswith(".{}".format(name)):
|
||||
return outputter
|
||||
|
||||
raise Exception("Unknown outputter: {}".format(name))
|
Reference in New Issue
Block a user