Scrapy, a fast high-level web crawling & scraping framework for Python.
extract_regex: encoding arg defaults to 'utf-8'
Ping Yin0aaa74d2bd14
diff --git a/scrapy/utils/misc.py b/scrapy/utils/misc.pyindex 3fe1e4122..098bfdfa6 100644--- a/scrapy/utils/misc.py+++ b/scrapy/utils/misc.py@@ -42,7 +42,7 @@ def load_object(path):return obj-def extract_regex(regex, text, encoding):+def extract_regex(regex, text, encoding='utf-8'):"""Extract a list of unicode strings from the given text/encoding using the following policies:* if the regex contains a named group called "extract" that will be returned