Scrapy, a fast high-level web crawling & scraping framework for Python.
adding formid to FormRequest documentation
Raul Gallegosdf1a42419f8b
diff --git a/docs/topics/request-response.rst b/docs/topics/request-response.rstindex 664a7239f..a1bd1e146 100644--- a/docs/topics/request-response.rst+++ b/docs/topics/request-response.rst@@ -358,7 +358,7 @@ fields with form data from :class:`Response` objects.The :class:`FormRequest` objects support the following class method inaddition to the standard :class:`Request` methods:- .. classmethod:: FormRequest.from_response(response, [formname=None, formnumber=0, formdata=None, formxpath=None, formcss=None, clickdata=None, dont_click=False, ...])+ .. classmethod:: FormRequest.from_response(response, [formname=None, formid=None, formnumber=0, formdata=None, formxpath=None, formcss=None, clickdata=None, dont_click=False, ...])Returns a new :class:`FormRequest` object with its form field valuespre-populated with those found in the HTML ``<form>`` element contained@@ -383,6 +383,9 @@ fields with form data from :class:`Response` objects.:param formname: if given, the form with name attribute set to this value will be used.:type formname: string+ :param formid: if given, the form with id attribute set to this value will be used.+ :type formid: string+:param formxpath: if given, the first form that matches the xpath will be used.:type formxpath: string@@ -421,6 +424,9 @@ fields with form data from :class:`Response` objects... versionadded:: 1.1.0The ``formcss`` parameter.+ .. versionadded:: 1.1.0+ The ``formid`` parameter.+Request usage examples----------------------