summaryrefslogtreecommitdiff
path: root/crocoite
diff options
context:
space:
mode:
Diffstat (limited to 'crocoite')
-rw-r--r--crocoite/cli.py2
-rw-r--r--crocoite/controller.py7
2 files changed, 4 insertions, 5 deletions
diff --git a/crocoite/cli.py b/crocoite/cli.py
index f34424e..c3c41a4 100644
--- a/crocoite/cli.py
+++ b/crocoite/cli.py
@@ -66,7 +66,7 @@ def single ():
logger.connect (WarcHandlerConsumer (warcHandler))
handler = [StatsHandler (), LogHandler (logger), warcHandler]
b = list (map (lambda x: behavior.availableMap[x], args.enabledBehaviorNames))
- controller = SinglePageController (args.url, fd, settings=settings,
+ controller = SinglePageController (url=args.url, settings=settings,
service=service, handler=handler, behavior=b, logger=logger)
try:
loop = asyncio.get_event_loop()
diff --git a/crocoite/controller.py b/crocoite/controller.py
index 5f4fe10..8b25d1f 100644
--- a/crocoite/controller.py
+++ b/crocoite/controller.py
@@ -104,19 +104,18 @@ class ControllerStart:
class SinglePageController:
"""
- Archive a single page url to file output.
+ Archive a single page url.
Dispatches between producer (site loader and behavior scripts) and consumer
(stats, warc writer).
"""
- __slots__ = ('url', 'output', 'service', 'behavior', 'settings', 'logger', 'handler')
+ __slots__ = ('url', 'service', 'behavior', 'settings', 'logger', 'handler')
- def __init__ (self, url, output, logger, \
+ def __init__ (self, url, logger, \
service, behavior=cbehavior.available, \
settings=defaultSettings, handler=[]):
self.url = url
- self.output = output
self.service = service
self.behavior = behavior
self.settings = settings