If you want to continue development with Python, we highly recommend reading their documentation.
To run the following code example, you'll need Python installed:
You should also have a Smartproxy account with access to the dashboard to get your credentials and endpoint information.
Once you have Python installed, continue with the following steps:
- Open the Terminal/Command Prompt.
- Create your project directory using the
mkdir python_example
command. - Navigate to your project folder using the
cd python_example
command. - Execute the following command to download the proxy setup example file:
HTTP(s):
curl https://raw.githubusercontent.com/Smartproxy/Smartproxy/master/python/python.py > python.py
SOCKS5:
curl https://raw.githubusercontent.com/Smartproxy/Smartproxy/master/python/python.py > pythonsocks5h.py
- You should see a new file named
python.py
in your project folder. Open it using an editor of your choice. - To run this Python example, set your username, password, and endpoint information you'd like to use and enter them in the following sections of the code:
To execute the Python example, simply run python python.py
in your Terminal tool.
You should see an IP address in the console window if everything was set up correctly:
Email - sales@smartproxy.com