Skip to main content

Free proxy list for python!

Project description

MAO _ PROXY

VERSION : 0.0.1

Author Language Opensource

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

GET US IN CLICK

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

maoproxy-0.0.1.tar.gz (3.9 kB view hashes)

Uploaded Source

Built Distribution

maoproxy-0.0.1-py2.py3-none-any.whl (3.9 kB view hashes)

Uploaded Python 2 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