Merge pull request #6251 from Laerte/master

Use defusedxml.xmlrpc
This commit is contained in:
Andrey Rakhmatullin 2024-02-28 14:29:20 +05:00 committed by GitHub
commit 415c47479f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 0 deletions

View File

@ -7,9 +7,13 @@ See documentation in docs/topics/request-response.rst
import xmlrpc.client as xmlrpclib
from typing import Any, Optional
import defusedxml.xmlrpc
from scrapy.http.request import Request
from scrapy.utils.python import get_func_args
defusedxml.xmlrpc.monkey_patch()
DUMPS_ARGS = get_func_args(xmlrpclib.dumps)

View File

@ -22,6 +22,7 @@ install_requires = [
"packaging",
"tldextract",
"lxml>=4.4.1",
"defusedxml>=0.7.1",
]
extras_require = {
':platform_python_implementation == "CPython"': ["PyDispatcher>=2.0.5"],