Skip to content

Bump scrapy from 2.19.0 to 2.20.0 - #372

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/uv/scrapy-2.20.0
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/uv/scrapy-2.20.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 14, 2026

Copy link
Copy Markdown
Contributor

Bumps scrapy from 2.19.0 to 2.20.0.

Release notes

Sourced from scrapy's releases.

2.20.0

  • Web-browser-like detection of response encodings, base URLs and meta refresh redirects, powered by frostwork
  • Requests can be awaited to get their response
  • Non-asyncio Twisted reactors are deprecated

Full changelog

Changelog

Sourced from scrapy's changelog.

Scrapy 2.20.0 (2026-11-06)

Highlights:

  • Web-browser-like detection of response encodings, base URLs and meta refresh redirects, powered by frostwork_

  • Requests can be awaited to get their response

  • Non-asyncio Twisted reactors are deprecated

Security bug fixes


-   Scrapy now limits by default the memory that responses can take, fixing
    `CVE-2017-14158`_.
In previous Scrapy versions, the only limit on the total size of responses
in memory, ``SCRAPER_SLOT_MAX_ACTIVE_SIZE``, covered responses waiting for
or going through spider callbacks. Responses to other requests, like those
of :ref:`media pipelines <topics-media-pipeline>`, had no limit. For
example, when media pipelines downloaded files faster than they could store
them, e.g. to Amazon S3, the downloaded files piled up in memory, so a
crawled website could make Scrapy run out of memory.

The new :setting:RESPONSE_MAX_ACTIVE_SIZE setting replaces
SCRAPER_SLOT_MAX_ACTIVE_SIZE and covers all responses in memory,
including those to :ref:awaited requests <inline-requests> and to
requests sent with :meth:ExecutionEngine.download_async() <scrapy.core.engine.ExecutionEngine.download_async>. Use it to change or
disable the limit. The :command:shell disables it.

.. _CVE-2017-14158: GHSA-h7wm-ph43-c39p

(:gh:482, :gh:4583, :gh:6430, :gh:8417, :gh:8459, :gh:8460)

  • :class:~scrapy.downloadermiddlewares.httpcompression.HttpCompressionMiddleware
    now decodes at most 1 content coding per response by default, and drops
    responses that apply more with :exc:~scrapy.exceptions.IgnoreRequest.

    In previous Scrapy versions, the number of content codings was unlimited,
    so a malicious server could send a response with a Content-Encoding
    header that chains thousands of codings (e.g. gzip, gzip, gzip, …) to
    make Scrapy run as many decompression passes, causing high CPU and memory
    usage. See the j72p-v7rm-cwm3_ security advisory for details.

    To allow more content codings per response, set the new
    :setting:COMPRESSION_MAX_ENCODINGS setting.

</tr></table>

... (truncated)

Commits
  • 4a421e4 Bump version: 2.19.0 → 2.20.0
  • 373d914 Fix frostwork and typing-extensions versions in the 2.20.0 release notes
  • c6b1743 Make MetaRefresh a dataclass not exported from scrapy.http
  • 2b30fee Link extractors and SitemapSpider follow file://, ftp:// and s3:// URLs from ...
  • 5204544 Files and images pipelines send S3 requests over plaintext HTTP by default
  • 6621b09 Redirects to no_proxy hosts sent through the environment proxy
  • 08f4176 Per-request http_user and http_pass credentials leaked on cross-domain redirects
  • 06c866b Unbounded Content-Encoding decompression chain allows denial of service
  • b184934 Add release notes for Scrapy 2.20.0 (#8462)
  • 9ddd3a7 Do not count body_file requests toward RESPONSE_MAX_ACTIVE_SIZE (#8466)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [scrapy](https://github.com/scrapy/scrapy) from 2.19.0 to 2.20.0.
- [Release notes](https://github.com/scrapy/scrapy/releases)
- [Changelog](https://github.com/scrapy/scrapy/blob/master/docs/news.rst)
- [Commits](scrapy/scrapy@2.19.0...2.20.0)

---
updated-dependencies:
- dependency-name: scrapy
  dependency-version: 2.20.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python:uv Pull requests that update python:uv code labels Nov 14, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python:uv Pull requests that update python:uv code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants