mirror of
https://github.com/scrapy/scrapy.git
synced 2025-03-03 17:38:07 +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:
parent
5a96a16914
commit
1eccd34a70
@ -54,7 +54,7 @@ def _urlencode(seq, enc):
|
|||||||
return urlencode(values, doseq=1)
|
return urlencode(values, doseq=1)
|
||||||
|
|
||||||
|
|
||||||
def _get_form(response, formname, formnumber, formxpath):
|
def _get_form(response, formname, formid, formnumber, formxpath):
|
||||||
"""Find the form element """
|
"""Find the form element """
|
||||||
from scrapy.selector.lxmldocument import LxmlDocument
|
from scrapy.selector.lxmldocument import LxmlDocument
|
||||||
root = LxmlDocument(response, lxml.html.HTMLParser)
|
root = LxmlDocument(response, lxml.html.HTMLParser)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user