How to Set up Residential Proxies for Scrapy Proxy Middleware

Learn how to set up residential proxies on Scrapy Proxy Middleware.

Need more information? Email us at [email protected]

3-day money-back guarantee

Smartproxy integration with Scrapy

Scrapy Proxy Middleware integration:

  • Open Terminal window.

  • Navigate to the main directory of your project folder using:

cd yourprojectname

  • Download our proxy middleware using the following command:

Smartproxy scrapy proxy middleware github repository

curl >

  • You should now see your project folder populated with file.

  • smartproxy integration Scrapy Proxy Middleware
  • Using a file manager, navigate to your project folder, you should see file located at the bottom of the directory.
  • Edit the file using an editor of your choice.

  • smartproxy integration Scrapy Proxy Middleware
  • Add the following properties at the bottom:

    'scrapy.downloadermiddlewares.httpproxy. HttpProxyMiddleware': 110,
    'yourprojectname.smartproxy_auth. ProxyMiddleware': 100,

SMARTPROXY_USER = 'username' ## Smartproxy Username (Sub-user)
SMARTPROXY_PASSWORD = 'password' ## Password for your user
SMARTPROXY_ENDPOINT = '' ## Endpoint you'd like to use
SMARTPROXY_PORT = '7000' ## Port of the endpoint you are using.

smartproxy integration Scrapy Proxy Middleware
  • In DOWNLOADER_MIDDLEWARES change yourprojectname line to the name of your project.

  • smartproxy integration Scrapy Proxy Middleware
  • Make sure that you enter your details account details as well as proxy details within punctuation marks ('')
  • Save the file.

To find more information about the setup, make sure to visit our Github Page.

Choose Smartproxy:

Never get

Avoid getting detected by using our vast pool of residential exit nodes.

Unlimited connections

Use an unlimited number of connections, threads and countries at once.

City and Country level targeting

Use residential IPs from as many countries or cities as you like. Change locations as often as needed.

24/7 Customer Support

Experienced 24/7 online technical support LiveChat with the average response time of 5 minutes. Email us or chat with us at any time.