You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

9 lines
259 B

def get_form_fields(form):
form_action = form.action
data = dict()
inputs = form.xpath("//input")
for _input in inputs:
name = _input.name
if name is not None:
data[name] = _input.value
return form_action, data