Title: Bump scrapy from 2.1.0 to 2.5.1 in /homeworks/homework11/51job_spider by dependabot[bot] · Pull Request #7 · lryself/python_learning · GitHub
Open Graph Title: Bump scrapy from 2.1.0 to 2.5.1 in /homeworks/homework11/51job_spider by dependabot[bot] · Pull Request #7 · lryself/python_learning
X Title: Bump scrapy from 2.1.0 to 2.5.1 in /homeworks/homework11/51job_spider by dependabot[bot] · Pull Request #7 · lryself/python_learning
Description: Bumps scrapy from 2.1.0 to 2.5.1.
Release notes
Sourced from scrapy's releases.
2.5.1
Security bug fix:
If you use HttpAuthMiddleware (i.e. the http_user and http_pass spider attributes) for HTTP authentication, any request exposes your credentials to the request target.
To prevent unintended exposure of authentication credentials to unintended domains, you must now additionally set a new, additional spider attribute, http_auth_domain, and point it to the specific domain to which the authentication credentials must be sent.
If the http_auth_domain spider attribute is not set, the domain of the first request will be considered the HTTP authentication target, and authentication credentials will only be sent in requests targeting that domain.
If you need to send the same HTTP authentication credentials to multiple domains, you can use w3lib.http.basic_auth_header instead to set the value of the Authorization header of your requests.
If you really want your spider to send the same HTTP authentication credentials to any domain, set the http_auth_domain spider attribute to None.
Finally, if you are a user of scrapy-splash, know that this version of Scrapy breaks compatibility with scrapy-splash 0.7.2 and earlier. You will need to upgrade scrapy-splash to a greater version for it to continue to work.
2.5.0
Official Python 3.9 support
Experimental HTTP/2 support
New get_retry_request() function to retry requests from spider callbacks
New headers_received signal that allows stopping downloads early
New Response.protocol attribute
See the full changelog
2.4.1
Fixed feed exports overwrite support
Fixed the asyncio event loop handling, which could make code hang
Fixed the IPv6-capable DNS resolver CachingHostnameResolver for download handlers that call reactor.resolve
Fixed the output of the genspider command showing placeholders instead of the import part of the generated spider module (issue 4874)
2.4.0
Hihglights:
Python 3.5 support has been dropped.
The file_path method of media pipelines can now access the source item.
This allows you to set a download file path based on item data.
The new item_export_kwargs key of the FEEDS setting allows to define keyword parameters to pass to item exporter classes.
You can now choose whether feed exports overwrite or append to the output file.
For example, when using the crawl or runspider commands, you can use the -O option instead of -o to overwrite the output file.
Zstd-compressed responses are now supported if zstandard is installed.
... (truncated)
Changelog
Sourced from scrapy's changelog.
Scrapy 2.5.1 (2021-10-05)
Security bug fix:
If you use
:class:~scrapy.downloadermiddlewares.httpauth.HttpAuthMiddleware
(i.e. the http_user and http_pass spider attributes) for HTTP
authentication, any request exposes your credentials to the request target.
To prevent unintended exposure of authentication credentials to unintended
domains, you must now additionally set a new, additional spider attribute,
http_auth_domain, and point it to the specific domain to which the
authentication credentials must be sent.
If the http_auth_domain spider attribute is not set, the domain of the
first request will be considered the HTTP authentication target, and
authentication credentials will only be sent in requests targeting that
domain.
If you need to send the same HTTP authentication credentials to multiple
domains, you can use :func:w3lib.http.basic_auth_header instead to
set the value of the Authorization header of your requests.
If you really want your spider to send the same HTTP authentication
credentials to any domain, set the http_auth_domain spider attribute
to None.
Finally, if you are a user of scrapy-splash_, know that this version of
Scrapy breaks compatibility with scrapy-splash 0.7.2 and earlier. You will
need to upgrade scrapy-splash to a greater version for it to continue to
work.
.. _scrapy-splash: https://github.com/scrapy-plugins/scrapy-splash
.. _release-2.5.0:
Scrapy 2.5.0 (2021-04-06)
Highlights:
Official Python 3.9 support
Experimental :ref:HTTP/2 support
Open Graph Description: Bumps scrapy from 2.1.0 to 2.5.1. Release notes Sourced from scrapy's releases. 2.5.1 Security bug fix: If you use HttpAuthMiddleware (i.e. the http_user and http_pass spider attributes) for ...
X Description: Bumps scrapy from 2.1.0 to 2.5.1. Release notes Sourced from scrapy's releases. 2.5.1 Security bug fix: If you use HttpAuthMiddleware (i.e. the http_user and http_pass spider attributes) ...
Opengraph URL: https://github.com/lryself/python_learning/pull/7
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:560e72fb-0888-fb51-61be-f6892e4343df |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 94DE:1AC597:236797C:2EE44C7:6B0366DE |
| html-safe-nonce | ab6e22fbca89808fb29d07bf94638a6b34bdab607f189f252c6aaf5bd5d62408 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NERFOjFBQzU5NzoyMzY3OTdDOjJFRTQ0Qzc6NkIwMzY2REUiLCJ2aXNpdG9yX2lkIjoiMjUzNTYyNjAwMzMxODAwNzUxOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1fa82c27088d19b007757ff0e00300f404396fa949b684782ead124ffed57527 |
| hovercard-subject-tag | pull_request:752687512 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/lryself/python_learning/pull/7/files |
| twitter:image | https://avatars.githubusercontent.com/in/29110?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/in/29110?s=400&v=4 |
| og:image:alt | Bumps scrapy from 2.1.0 to 2.5.1. Release notes Sourced from scrapy's releases. 2.5.1 Security bug fix: If you use HttpAuthMiddleware (i.e. the http_user and http_pass spider attributes) for ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/lryself/python_learning git https://github.com/lryself/python_learning.git |
| octolytics-dimension-user_id | 61085475 |
| octolytics-dimension-user_login | lryself |
| octolytics-dimension-repository_id | 244911454 |
| octolytics-dimension-repository_nwo | lryself/python_learning |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 244911454 |
| octolytics-dimension-repository_network_root_nwo | lryself/python_learning |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | no-cache |
Viewport: width=device-width