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.4.tar.gz
(16.9 kB
view hashes)
Built Distribution
Close
Hashes for django_simple_proxy-0.1.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e237e75c43f0ed774fda4c15f60bc4a17bd84c1376ec2b17fe757fb0a5d307a0 |
|
MD5 | c92e89c392c93e5f6750ce161e4c444f |
|
BLAKE2b-256 | fc26ced3ab4dce685187162110931e73192b79395c362a4b1a4f8a62a4e741cd |
Close
Hashes for django_simple_proxy-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7640730a5777c71061f5ea19c2bc78e0c6a913a25b76db79788e4d72156ba02c |
|
MD5 | 6bed1860612ebc2ded00f367dd1d893a |
|
BLAKE2b-256 | 7d6645a488cbbdf00919db6e5d78342003820652409fce648e616785669f7b18 |