Skip to main content

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)

Uploaded Source

Built Distribution

django_simple_proxy-0.1.5-py3-none-any.whl (18.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page