Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

Suggest installing the brotli package instead of brotlipy (#4267)

Eugene9a28eb0bad1a
diff --git a/docs/topics/downloader-middleware.rst b/docs/topics/downloader-middleware.rst
index a15637ed6..912600428 100644
--- a/docs/topics/downloader-middleware.rst
+++ b/docs/topics/downloader-middleware.rst
@@ -704,14 +704,15 @@ HttpCompressionMiddleware
sent/received from web sites.
This middleware also supports decoding `brotli-compressed`_ as well as
- `zstd-compressed`_ responses, provided that `brotlipy`_ or `zstandard`_ is
+ `zstd-compressed`_ responses, provided that `brotli`_ or `zstandard`_ is
installed, respectively.
.. _brotli-compressed: https://www.ietf.org/rfc/rfc7932.txt
-.. _brotlipy: https://pypi.org/project/brotlipy/
+.. _brotli: https://pypi.org/project/Brotli/
.. _zstd-compressed: https://www.ietf.org/rfc/rfc8478.txt
.. _zstandard: https://pypi.org/project/zstandard/
+
HttpCompressionMiddleware Settings
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
diff --git a/tests/requirements.txt b/tests/requirements.txt
index 398d1d16d..d2a8aae1b 100644
--- a/tests/requirements.txt
+++ b/tests/requirements.txt
@@ -12,7 +12,7 @@ uvloop; platform_system != "Windows" and python_version > '3.6'
# optional for shell wrapper tests
bpython
-brotlipy # optional for HTTP compress downloader middleware tests
+brotli # optional for HTTP compress downloader middleware tests
zstandard; implementation_name != 'pypy' # optional for HTTP compress downloader middleware tests
ipython
pywin32; sys_platform == "win32"