Scrapy Proxy Middleware
Scrapy Proxy Middleware Proxy Setup Guide
- Open the Terminal window.
- Navigate to the main directory of your project folder using
cd yourprojectname
. - Download our proxy middleware using the following command:
curl https://raw.githubusercontent.com/Smartproxy/Scrapy-Middleware/master/smartproxy_auth.py > smartproxy_auth.py
- You should now see that your project folder contains the decodo_auth.py file.
- Using a file manager, navigate to your project folder, where you should see the settings.py file.
- Edit the settings.py file using an editor of your choice.
- Add the following properties at the bottom:
DOWNLOADER_MIDDLEWARES = {
'scrapy.downloadermiddlewares.httpproxy.HttpProxyMiddleware': 110,
'yourprojectname.decodo_auth.ProxyMiddleware': 100,
}
DECODO_USER = 'username' ## Decodo Username (Sub-user)
DECODO_PASSWORD = 'password' ## Password for your user
DECODO_ENDPOINT = 'gate.decodo.com' ## Endpoint you'd like to use
DECODO_PORT = '7000' ## Port of the endpoint you are using.

Scrapy Proxy Middleware – Proxy settings.
- In the DOWNLOADER_MIDDLEWARES section, change the
yourprojectname
line to the name of your project.

Scrapy Proxy Middleware – Change project name.
- Make sure that you enter your account details as well as proxy details within quotation marks ' '.
- Finally, Save the file.
To find more information about the setup, make sure to visit our Github Page. In case you wish to use Decodo directly in your request, please refer to this article.
Support
Still can't find an answer? Want to say hi? We take pride in our 24/7 customer support. Alternatively, you can reach us via our support email at [email protected].
Updated 4 days ago