Scrapy, a fast high-level web crawling & scraping framework for Python.
Resolving Comments
Viral Mehtaa5acc9373f87
diff --git a/scrapy/http/request/form.py b/scrapy/http/request/form.pyindex 238dd44b3..d033a830e 100644--- a/scrapy/http/request/form.py+++ b/scrapy/http/request/form.py@@ -170,11 +170,8 @@ def _get_clickable(clickdata, form):"""clickables = [el for el in form.xpath(- 'descendant::*[(self::input or self::button)'- ' and re:test(@type, "^submit$", "i")]'- '|descendant::*[(self::input or self::button)'- ' and re:test(@type, "^image$", "i")]'- '|descendant::button[not(@type)]',+ 'descendant::input[re.test(@type, "^(submit|image)$", "i")]'+ '|descendant::button[not(@type) or re.test(@type, "^submit$", "i")]',namespaces={"re": "http://exslt.org/regular-expressions"})]if not clickables: