From 57a5ee0097f5ec9ba45726d28ec943b88ec47fde Mon Sep 17 00:00:00 2001 From: Elias Dorneles Date: Thu, 12 Mar 2015 23:20:44 -0300 Subject: [PATCH] added example value to set for proxy meta key --- docs/topics/downloader-middleware.rst | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/topics/downloader-middleware.rst b/docs/topics/downloader-middleware.rst index fbc5391fa..a3647fd9b 100644 --- a/docs/topics/downloader-middleware.rst +++ b/docs/topics/downloader-middleware.rst @@ -608,7 +608,7 @@ HttpProxyMiddleware .. class:: HttpProxyMiddleware This middleware sets the HTTP proxy to use for requests, by setting the - ``proxy`` meta value to :class:`~scrapy.http.Request` objects. + ``proxy`` meta value for :class:`~scrapy.http.Request` objects. Like the Python standard library modules `urllib`_ and `urllib2`_, it obeys the following environment variables: @@ -617,6 +617,9 @@ HttpProxyMiddleware * ``https_proxy`` * ``no_proxy`` + You can also set the meta key ``proxy`` per-request, to a value like + ``http://some_proxy_server:port``. + .. _urllib: http://docs.python.org/library/urllib.html .. _urllib2: http://docs.python.org/library/urllib2.html