Skip to main content

An Simple Tool for Validate Proxy

Project description

proxy-inspector

A Simple Tool for Validate Proxy

Usage

validater = ProxyInspector()

# if response code is 200, return true
print(validater.validate("https://www.bing.com/","{{PROXY_HOST:PROXY_PORT}}"))

# if response code is 200 and response content contain "User-agent", return true
print(validater.validate("https://www.bing.com/robots.txt","{{PROXY_HOST:PROXY_PORT}}", "User-agent"))

# if response code is 200 and response content not contain "I'm Robot", return true
print(validater.validate("https://www.bing.com/robots.txt","{{PROXY_HOST:PROXY_PORT}}", None, "I'm Robot"))

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

proxy_inspector-0.0.2-py3-none-any.whl (4.2 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