1
0
mirror of https://github.com/scrapy/scrapy.git synced 2025-03-02 21:17:58 +00:00

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

This commit is contained in:
mrpandav 2015-04-12 11:11:28 +05:30
parent 5a96a16914
commit 1eccd34a70

View File

@ -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)