No project description provided
Project description
django_simple_proxy
Simple Proxy for Python Django framework
Installation
pip install django-simple-proxy
Then add django_simple_proxy to INSTALLED_APPS
Usage
First, set Proxy in the database using the admin panel.
Manually, with requests library.
import requests
from django_simple_proxy.tools import random_proxy
proxy_url = random_proxy()
proxies = {'http': proxy_url, 'https': proxy_url}
response = requests.get(url, proxies=proxies)
Or using get_request / post_request:
from django_simple_proxy.tools import get_request
response = get_request(url)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django_simple_proxy-0.1.5.tar.gz
(16.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_simple_proxy-0.1.5.tar.gz.
File metadata
- Download URL: django_simple_proxy-0.1.5.tar.gz
- Upload date:
- Size: 16.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.10.4 Linux/5.15.0-47-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
beb575e9fad3dc1150baaee4b9afd6fdb1362ba4c9da993fc9519a9dac96b159
|
|
| MD5 |
8d22aeb3b6fc708abc50b0d801720b7a
|
|
| BLAKE2b-256 |
c0ae2c955636462f130f3ed82ef9bdac021b4e78d589fb763de9cd025ace2762
|
File details
Details for the file django_simple_proxy-0.1.5-py3-none-any.whl.
File metadata
- Download URL: django_simple_proxy-0.1.5-py3-none-any.whl
- Upload date:
- Size: 18.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.10.4 Linux/5.15.0-47-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7fa1b8a7b6e0b96d16662ee0d9f3b6e710228dd49f192edf972f306661282f46
|
|
| MD5 |
66ea03fb186ffb1fbda699fbf8777621
|
|
| BLAKE2b-256 |
d34e5f7744a3d7e3913392da2f7f2bdd67b5bfe6a0357fc97b02ac77110169bc
|