New :func:~scrapy.downloadermiddlewares.retry.get_retry_request function
to retry requests from spider callbacks
New :class:~scrapy.signals.headers_received signal that allows stopping
downloads early
New :class:Response.protocol <scrapy.http.Response.protocol> attribute
Deprecation removals
- Removed all code that :ref:`was deprecated in 1.7.0 <1.7-deprecations>` and
had not :ref:`already been removed in 2.4.0 <2.4-deprecation-removals>`.
(:issue:`4901`)
Removed support for the SCRAPY_PICKLED_SETTINGS_TO_OVERRIDE environment
variable, :ref:deprecated in 1.8.0 <1.8-deprecations>. (:issue:4912)
Deprecations
- The :mod:`scrapy.utils.py36` module is now deprecated in favor of
:mod:`scrapy.utils.asyncgen`. (:issue:`4900`)
New features
Experimental :ref:HTTP/2 support <http2> through a new download handler
that can be assigned to the https protocol in the
:setting:DOWNLOAD_HANDLERS setting.
(:issue:1854, :issue:4769, :issue:5058, :issue:5059, :issue:5066)
The new :func:scrapy.downloadermiddlewares.retry.get_retry_request
function may be used from spider callbacks or middlewares to handle the
retrying of a request beyond the scenarios that
:class:~scrapy.downloadermiddlewares.retry.RetryMiddleware supports.
(:issue:3590, :issue:3685, :issue:4902)
The new :class:~scrapy.signals.headers_received signal gives early access
</tr></table>
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 merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@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 from 2.4.1 to 2.5.0.
Release notes
Sourced from scrapy's releases.
Changelog
Sourced from scrapy's changelog.
... (truncated)
Commits
e63188c
Bump version: 2.4.1 → 2.5.0a71d6ef
2.5.0 release notes (#5028)099fb6e
Merge pull request #5076 from wRAR/qualname9e3b868
Use qualname in middleware handling.8c5a3a5
Merge pull request #5073 from elacuesta/fix-urlencode-doseq-arg9e7cbc0
Fix type for urlencode's doseq argument127a858
Merge pull request #5063 from noviluni/update_usageError_message12f2006
Merge pull request #4799 from GeorgeA92/patch-2f0c8d31
Merge pull request #4694 from Jgaldos/improve-httpstatus-all-metacc095aa
Windows pip installation guide (#4736)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 merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@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)