• Smartproxy >
  • Integrations >
  • How to Set up Residential Proxies for Scrapy Proxy Middleware

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].

14-day money-back option

Scrapy Proxy Middleware integration:

1. Open Terminal window.

2. Navigate to the main directory of your project folder using:

cd yourprojectname

3. Download our proxy middleware using the following command:

C:\Users>cd smartproxy
C:\Users\smartproxy>curl > smartproxy auth.py_
curl >

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

5. Using a file manager, navigate to your project folder, you should see  file located at the bottom of the directory.

6. Edit the file using an editor of your choice. file

7. 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.

8. In DOWNLOADER_MIDDLEWARES change yourprojectname line to the name of your project.

Smartproxy proxy Middleware

9. Make sure that you enter your details account details as well as proxy details within punctuation marks ('').

10. Save the file.

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

Start now

Choose Smartproxy:

no blocks

Never get flagged

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


Unlimited connections

Use any shoe bot with an unlimited number of connections, threads, and countries at once.

City and Country level targeting

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

24/7 Customer Support

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

Be aware that any tools mentioned in this article belong to a third party, not Smartproxy. Therefore, Smartproxy will not be responsible for any of the services offered by the third-party. Make sure to thoroughly review the third-party’s policies and practices, or do your due diligence, before using or accessing any of their services.

Get in touch

Follow us


© 2018-2024, All Rights Reserved