Scrapy, a fast high-level web crawling & scraping framework for Python.
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
mrpandav1eccd34a7032
diff --git a/scrapy/http/request/form.py b/scrapy/http/request/form.pyindex 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 LxmlDocumentroot = LxmlDocument(response, lxml.html.HTMLParser)