Free proxy list for python!
Project description
MAO _ PROXY
VERSION : 0.0.1
THE MAIN AUTHOR OF THIS CODE MAO2116
REQUIREMENTS
PYTHON >=3.9.X+
PIP MODULE
REQUESTS
INSTALLATION
pip3 install maoproxy
IMPORT MODULE
from maoproxy import proxy
USE OF mproxy FUNCTION
proxy.mproxy(type="")
Here type mean your security method of your url it contains 4 types of security method http,https,socks5 and all
Example Code Of Using This Tool
Just a ip printer
from maoproxy import proxy
proxy.mproxy(type="https")
Realtime Example
import requests
from maoproxy import proxy
ip_addresses = proxy.mproxy(type="http")
def proxy_request(url):
for mao_proxy in ip_addresses:
try:
proxies = {"http": f"http://{mao_proxy}", "https": f"http://{mao_proxy}"}
response = requests.get(url, proxies=proxies, timeout=30)
print(f"Proxy currently being used: {mao_proxy}")
except Exception as mao:
print("Error, looking for another proxy")
proxy_request("http://your_url.mao/")
"""
Exmaple:
proxy_request("http://google.com")
"""
Copyright (c) 2021 MAO-COMMUNITY Under MIT LICENSE
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
maoproxy-0.0.1.tar.gz
(3.9 kB
view hashes)
Built Distribution
Close
Hashes for maoproxy-0.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f76f75091181f3fe4eeb4077fed833ce611ffb9158acd27d82a8619edd7fd7d8 |
|
MD5 | 58ce63f818276e72400ef50f6688592d |
|
BLAKE2b-256 | a90d36afa9b9ca0cf6f24a5239b0d183e92f4211760b92afb5724523df04a06d |