Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

Rename the ftp-socks extra to socks (#8341)

Adrian0c5c4153cde8
diff --git a/docs/intro/install.rst b/docs/intro/install.rst
index faeb4f927..8e6c60b0d 100644
--- a/docs/intro/install.rst
+++ b/docs/intro/install.rst
@@ -115,8 +115,6 @@ The following extras are available:
- Reading the system clipboard with :command:`genrequest`
* - ``color``
- :setting:`LOG_COLOR`
- * - ``ftp-socks``
- - SOCKS proxy support in :ref:`aioftp-handler`
* - ``gcs``
- :ref:`Google Cloud Storage <topics-feed-storage-gcs>` for
:ref:`feed exports <topics-feed-exports>` and
@@ -139,6 +137,8 @@ The following extras are available:
:ref:`feed exports <topics-feed-exports>`,
:ref:`media pipelines <media-pipelines-s3>`, and
:ref:`S3 downloads <s3-handler>`
+ * - ``socks``
+ - SOCKS proxy support in :ref:`aioftp-handler`
* - ``twisted-http2``
- :ref:`twisted-http2-handler`
* - ``uvloop``
diff --git a/docs/topics/download-handlers.rst b/docs/topics/download-handlers.rst
index 2e58c8833..6ba2dc903 100644
--- a/docs/topics/download-handlers.rst
+++ b/docs/topics/download-handlers.rst
@@ -494,7 +494,7 @@ the plain-text output of the FTP ``NLST`` command, one file or directory name
per line.
It supports SOCKS4 and SOCKS5 :reqmeta:`proxies <proxy>` if you install the
-:ref:`ftp-socks <extras>` extra.
+:ref:`socks <extras>` extra.
.. warning::
diff --git a/pyproject.toml b/pyproject.toml
index 602ee6041..65888b461 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -73,7 +73,6 @@ Tracker = "https://github.com/scrapy/scrapy/issues"
bpython = ["bpython>=0.7.1"]
clipboard = ["pyperclip>=1.8.0"]
color = ["colorlog>=6.6.0"]
-ftp-socks = ["python-socks[asyncio]>=2.6.0"]
gcs = ["google-cloud-storage>=1.30.0"]
httpx = ["httpx2[http2,socks]>=2.0.0"]
images = ["Pillow>=9.2.0"]
@@ -82,6 +81,7 @@ memusage = ["psutil>=5.9.0"]
ptpython = ["ptpython>=3.0.23"]
robotparser = ["robotexclusionrulesparser>=1.6.2"]
s3 = ["boto3>=1.35.2"]
+socks = ["python-socks[asyncio]>=2.6.0"]
twisted-http2 = ["Twisted[http2]>=21.7.0"]
uvloop = [
"uvloop>=0.17.0; platform_system != 'Windows' and implementation_name != 'pypy'",
diff --git a/scrapy/core/downloader/handlers/_aioftp.py b/scrapy/core/downloader/handlers/_aioftp.py
index 5adbf660e..8d5c19931 100644
--- a/scrapy/core/downloader/handlers/_aioftp.py
+++ b/scrapy/core/downloader/handlers/_aioftp.py
@@ -186,7 +186,7 @@ class AioftpDownloadHandler(BaseStreamingDownloadHandler[_AioftpResponse]):
if not _HAS_SOCKS: # pragma: no cover
raise ValueError(
f"SOCKS proxy support in {type(self).__name__} requires the"
- f" 'ftp-socks' extra to be installed."
+ f" 'socks' extra to be installed."
)
assert parts.hostname
return Proxy(