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.3.tar.gz
(16.9 kB
view hashes)
Built Distribution
Close
Hashes for django_simple_proxy-0.1.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51eb6da4d1a2af2c9249090c59169cdf4c20fa66b2bc34e7fdd112889a655c5d |
|
MD5 | fe63c71c33b19ba9e501807b64991a79 |
|
BLAKE2b-256 | 11ad1271ed438d41e98957035535f49b0334f032e9ae6a98e88be31c0471514f |
Close
Hashes for django_simple_proxy-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7197b19961fc9029fe001bdd6fcbe058552370199bc67c807db4e4e832c0695 |
|
MD5 | 413d9bbc2a53e71095898d50db00c879 |
|
BLAKE2b-256 | 3686a7eea584015a882cb7ac0ee0102b765fbb03aed40d42472758f371c68888 |