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 hashes)
Built Distribution
Close
Hashes for django_simple_proxy-0.1.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | beb575e9fad3dc1150baaee4b9afd6fdb1362ba4c9da993fc9519a9dac96b159 |
|
MD5 | 8d22aeb3b6fc708abc50b0d801720b7a |
|
BLAKE2b-256 | c0ae2c955636462f130f3ed82ef9bdac021b4e78d589fb763de9cd025ace2762 |
Close
Hashes for django_simple_proxy-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7fa1b8a7b6e0b96d16662ee0d9f3b6e710228dd49f192edf972f306661282f46 |
|
MD5 | 66ea03fb186ffb1fbda699fbf8777621 |
|
BLAKE2b-256 | d34e5f7744a3d7e3913392da2f7f2bdd67b5bfe6a0357fc97b02ac77110169bc |