Skip to content

Conversation

@dependabot
Copy link

@dependabot dependabot bot commented on behalf of github Oct 18, 2022

Bumps scrapy from 2.5.0 to 2.7.0.

Release notes

Sourced from scrapy's releases.

2.7.0

See the full changelog

2.6.3

Makes pip install Scrapy work again.

It required making changes to support pyOpenSSL 22.1.0. We had to drop support for SSLv3 as a result.

We also upgraded the minimum versions of some dependencies.

See the changelog.

2.6.2

Fixes a security issue around HTTP proxy usage, and addresses a few regressions introduced in Scrapy 2.6.0.

See the changelog.

2.6.1

Fixes a regression introduced in 2.6.0 that would unset the request method when following redirects.

2.6.0

  • Security fixes for cookie handling (see details below)
  • Python 3.10 support
  • asyncio support is no longer considered experimental, and works out-of-the-box on Windows regardless of your Python version
  • Feed exports now support pathlib.Path output paths and per-feed item filtering and post-processing

See the full changelog

Security bug fixes

  • When a Request object with cookies defined gets a redirect response causing a new Request object to be scheduled, the cookies defined in the original Request object are no longer copied into the new Request object.

    If you manually set the Cookie header on a Request object and the domain name of the redirect URL is not an exact match for the domain of the URL of the original Request object, your Cookie header is now dropped from the new Request object.

    The old behavior could be exploited by an attacker to gain access to your cookies. Please, see the cjvr-mfj7-j4j8 security advisory for more information.

    Note: It is still possible to enable the sharing of cookies between different domains with a shared domain suffix (e.g. example.com and any subdomain) by defining the shared domain suffix (e.g. example.com) as the cookie domain when defining your cookies. See the documentation of the Request class for more information.

  • When the domain of a cookie, either received in the Set-Cookie header of a response or defined in a Request object, is set to a public suffix <https://publicsuffix.org/>_, the cookie is now ignored unless the cookie domain is the same as the request domain.

    The old behavior could be exploited by an attacker to inject cookies from a controlled domain into your cookiejar that could be sent to other domains not controlled by the attacker. Please, see the mfjm-vh54-3f96 security advisory for more information.

... (truncated)

Changelog

Sourced from scrapy's changelog.

Scrapy 2.7.0 (2022-10-17)

Highlights:

  • Added Python 3.11 support, dropped Python 3.6 support
  • Improved support for :ref:asynchronous callbacks <topics-coroutines>
  • :ref:Asyncio support <using-asyncio> is enabled by default on new projects
  • Output names of item fields can now be arbitrary strings
  • Centralized :ref:request fingerprinting <request-fingerprints> configuration is now possible

Modified requirements


Python 3.7 or greater is now required; support for Python 3.6 has been dropped.
Support for the upcoming Python 3.11 has been added.

The minimum required version of some dependencies has changed as well:

  • lxml_: 3.5.0 → 4.3.0

  • Pillow_ (:ref:images pipeline &lt;images-pipeline&gt;): 4.0.0 → 7.1.0

  • zope.interface_: 5.0.0 → 5.1.0

(:issue:5512, :issue:5514, :issue:5524, :issue:5563, :issue:5664, :issue:5670, :issue:5678)

Deprecations


-   :meth:`ImagesPipeline.thumb_path
    &lt;scrapy.pipelines.images.ImagesPipeline.thumb_path&gt;` must now accept an
    ``item`` parameter (:issue:`5504`, :issue:`5508`).
  • The scrapy.downloadermiddlewares.decompression module is now
    deprecated (:issue:5546, :issue:5547).

New features

  • The :meth:~scrapy.spidermiddlewares.SpiderMiddleware.process_spider_output method of :ref:spider middlewares &lt;topics-spider-middleware&gt; can now be defined as an :term:asynchronous generator (:issue:4978).

</tr></table>

... (truncated)

Commits
  • 20b79a0 Bump version: 2.6.2 → 2.7.0
  • 06c8f67 2.7 release notes (#5680)
  • ea6315b Merge pull request #5679 from wRAR/template-asyncio-reactor
  • 960a7f6 Verify that the installed asyncio event loop matches ASYNCIO_EVENT_LOOP (#5529)
  • 75bb516 Adapt tests to the new value of TWISTED_REACTOR for new projects
  • 0435751 Add async callback support to the parse command (#5577)
  • 22a59d0 CI: use the latest version of Ubuntu (#5675)
  • 62cc26e Change TWISTED_REACTOR in the default template.
  • 715c05d transport.producer.loseConnection() → transport.loseConnection() (#4995)
  • da9a2f8 Remove mention of minimum PyPy versions from the documentation (#5678)
  • Additional commits viewable in compare view

Dependabot compatibility score

You can trigger a rebase of this PR 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](https://github.com/scrapy/scrapy) from 2.5.0 to 2.7.0.
- [Release notes](https://github.com/scrapy/scrapy/releases)
- [Changelog](https://github.com/scrapy/scrapy/blob/master/docs/news.rst)
- [Commits](scrapy/scrapy@2.5.0...2.7.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot @github
Copy link
Author

dependabot bot commented on behalf of github Oct 18, 2022

The following labels could not be found: skip-changelog, dependencies.

@dependabot @github
Copy link
Author

dependabot bot commented on behalf of github Nov 3, 2022

Superseded by #83.

@dependabot dependabot bot closed this Nov 3, 2022
@dependabot dependabot bot deleted the dependabot/pip/scrapy-2.7.0 branch November 3, 2022 04:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant