smartproxy
  • 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

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 https://raw.githubusercontent.com/Smartproxy/Scrapy-Middleware/master/smartproxy_auth.py > smartproxy auth.py_
curl https://raw.githubusercontent.com/Smartproxy/Scrapy-Middleware/master/smartproxy_auth.py > smartproxy_auth.py

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

smartproxy_auth.py file

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

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

settings.py file

7. Add the following properties at the bottom:

properties
DOWNLOADER_MIDDLEWARES = {

'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 = 'gate.smartproxy.com' ## 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

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.

Get in touch

Follow us

Company

© 2018-2024 smartproxy.com, All Rights Reserved