From 1eccd34a7032c3e50c56f61da34ef39d1aaf43ec Mon Sep 17 00:00:00 2001 From: mrpandav Date: Sun, 12 Apr 2015 11:11:28 +0530 Subject: [PATCH] adding feature improvement for selecting form using form-id, in addition to formname , formnumer before we go for xpath.. making it more idiomatic in nature --- scrapy/http/request/form.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scrapy/http/request/form.py b/scrapy/http/request/form.py index cae56f229..82cb5f5d4 100644 --- a/scrapy/http/request/form.py +++ b/scrapy/http/request/form.py @@ -54,7 +54,7 @@ def _urlencode(seq, enc): return urlencode(values, doseq=1) -def _get_form(response, formname, formnumber, formxpath): +def _get_form(response, formname, formid, formnumber, formxpath): """Find the form element """ from scrapy.selector.lxmldocument import LxmlDocument root = LxmlDocument(response, lxml.html.HTMLParser)