mirror of https://github.com/scrapy/scrapy.git
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:
parent
5a96a16914
commit
1eccd34a70
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue