Skip to main content

Vats_Proxy

PyPI PyPI - Python Version pypi-upload

Free Proxy library for Python to use with requests library. Checks proxy connection&health while scraping proxies.

Installation

pip install vats_proxy

Get started

How to initiate ProxyManager and Use it: Example usages are shown below

ProxyManager(count=4) #Gets 4 free proxy
ProxyManager(count=4, test_url="http://www.yourtargetsite.com") # Gets 4 proxy and test proxies by making requets to test_url

#####Get One Proxy

from vats_proxy import ProxyManager
import requests
# Initialize Manager
proxy_manager = ProxyManager(count=1, test_url="http://www.yourtargetsite.com") 
# Make request with proxy
proxy = proxy_manager.proxies.pop() # gets one proxy from proxy list
#proxy variable information:
	#type: dict
	#value example: {"http": "http://192.68.1.1:9954"}
request = requests.get("https://www.google.com", proxies=proxy)

#####Get Multiple Proxies and Make Each request with different proxy

from vats_proxy import ProxyManager
import requests
# Initialize Manager
proxy_manager = ProxyManager(count=5, test_url="http://www.yourtargetsite.com")
# Make request with proxy
for proxy in proxy_manager.proxies:
	request = requests.get("https://www.google.com", proxies=proxy)

#####Handle Failed Proxy Connection

from vats_proxy import ProxyManager
import requests
from requests.exceptions import ProxyError
# Initialize Manager
proxy_manager = ProxyManager(count=1)
proxy = proxy_manager.proxies.pop()
try:
	request = requests.get("https://www.google.com", proxies=proxy)
except ProxyError:
	proxy = proxy_manager.request_proxy() # returns new proxy

Metadata

Release files for vats-proxy 0.8.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vats-proxy 0.8.1
File Size Uploaded
vats_proxy-0.8.1.tar.gz 3.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for vats-proxy 0.8.1
File Interpreter ABI Platform
vats_proxy-0.8.1-py3-none-any.whl Python 3 none any Details

Total release size: 6.3 kB

Release files / vats_proxy-0.8.1.tar.gz

Download URL vats_proxy-0.8.1.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
1dc0ed8e98c940b4d4e786dc386db7bdf32eb7ecf38f6feb9099e9eb65b5e7c6
BLAKE2b-256 checksum
How to use checksums
ed00280a52928ccc6027a23700705dc6ede5d24a0b488bf419938add3557b4bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.9.12

Release files / vats_proxy-0.8.1-py3-none-any.whl

Download URL vats_proxy-0.8.1-py3-none-any.whl
Size 3.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9555f6b052fcd156f75291793e2fda1cff88601befb97338815ffb6d0c348799
BLAKE2b-256 checksum
How to use checksums
50f75425f7db25b4d8c5be2b10305ce54ecc7350ca6933a229dcfa84d5625e0a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.9.12

Release history Release notifications | RSS feed

This release

0.8.1 This release

2 release files

0.7.1

2 release files

0.6.2

2 release files

0.6.1

1 release file

0.5.1

1 release file

0.4.1

1 release file

0.3.1

1 release file

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page