Use defusedxml.xmlrpc

This commit is contained in:
Adrián Chaves 2024-02-29 09:50:29 +01:00
parent 11b610dfda
commit 1932722277
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 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"],