ExperimentSession.urlargs#
- property ExperimentSession.urlargs[source]#
A dictionary of key-value pairs that the experiment might have received as url parameters.
Examples
We use a local experiment, running on http://127.0.0.1:5000 for this example. You might start the experiment via:
https://127.0.0.1:5000/start?param1=abc¶m2=defg
In this case,
param1=abc
andparam2=defg
are the url parameters. They are captured and saved by the experiment. The following minimal experiment will print the value of param1 (‘abc’) on the first page:import alfred3 as al exp = al.Experiment() @exp.member class Demo(al.Page): def on_exp_access(self): param1 = self.exp.urlargs.get("param1") self += al.Text(param1)
- Type