summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crocoite/controller.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/crocoite/controller.py b/crocoite/controller.py
index 1a41117..62676ea 100644
--- a/crocoite/controller.py
+++ b/crocoite/controller.py
@@ -27,6 +27,7 @@ import tempfile, asyncio, json, os
from itertools import islice
from datetime import datetime
from urllib.parse import urlparse
+from operator import attrgetter
from . import behavior as cbehavior
from .browser import SiteLoader, Item
@@ -153,6 +154,12 @@ class SinglePageController:
'useragent': version['userAgent'],
'viewport': await getFormattedViewportMetrics (l.tab),
},
+ 'parameters': {
+ 'url': self.url,
+ 'idleTimeout': self.settings.idleTimeout,
+ 'timeout': self.settings.timeout,
+ 'behavior': list (map (attrgetter('name'), self.behavior)),
+ },
}
self.processItem (ControllerStart (payload))