Scrapy, a fast high-level web crawling & scraping framework for Python.
Fixed formatting issues
Viral Mehtaff5f717f7a2a
diff --git a/scrapy/http/request/form.py b/scrapy/http/request/form.pyindex 184ee2599..22846ad77 100644--- a/scrapy/http/request/form.py+++ b/scrapy/http/request/form.py@@ -168,15 +168,17 @@ def _get_clickable(clickdata, form):if the latter is given. If not, it returns the firstclickable element found"""+ print("form =", form.__dict__)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)]',- namespaces={"re": "http://exslt.org/regular-expressions"})+ '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)]',+ namespaces={"re": "http://exslt.org/regular-expressions"})]+ print("clickables =", clickables)if not clickables:return