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.2.tar.gz
(17.0 kB
view hashes)
Built Distribution
Close
Hashes for django_simple_proxy-0.1.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d805525c723f95b4c3e98b34971efd5607903c39ed0b17b96270fa09e0351ece |
|
MD5 | 6943748348220b98c421985a13025036 |
|
BLAKE2b-256 | d5a4386eb4b815ec644675eed51aa44a199c751378c63b8e7819596912859f63 |
Close
Hashes for django_simple_proxy-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21973c55dc724b8259ac7c0c0b667b80c6eea7c3f5a1da533dd3cd1a38703cfc |
|
MD5 | 927b989e46bf47ce847929b5e4187fde |
|
BLAKE2b-256 | 42d9bae9b3cbfad273c85f99e54554ae0d79ae63d0a5cf8dbd9904452cceb8f8 |