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.1.tar.gz
(17.1 kB
view hashes)
Built Distribution
Close
Hashes for django_simple_proxy-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8785bbafdbf12ab7e77bd02514d0416d2ddd1e1c539806971fd1289297ca6b84 |
|
MD5 | 7d2a2c2dfc9a752f301d1f38c71313e6 |
|
BLAKE2b-256 | 53538e2176f5fc5803494c335d7d9c9dff3b55363093a3e82fbd04f370c40d0e |
Close
Hashes for django_simple_proxy-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5e7326ad15644ecdf676055d43c5e7053286c9d069183d0abe5b27478dabb4f |
|
MD5 | 5fc25da51d22bc0da8c7c6faa8abf44b |
|
BLAKE2b-256 | b73c21727d431a04b9a0574aaf2620bfa74fa6287462acdfe6b4594a67d36464 |