Coder Social home page Coder Social logo

nullpointermaker / dynamic_proxy Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 1.0 140 KB

Scrape, Filter, Check, Serve.

License: GNU General Public License v3.0

Python 90.91% Batchfile 1.84% Shell 7.25%
proxy-pool dynamic-proxy proxy-relay proxy-changer proxy-rotator proxy-scraper

dynamic_proxy's Introduction

Dynamic Proxy

  • Scrape proxies from multi pools.
  • Filter by types, anonymity, countries.
  • Check anonymity, reachability to websites.
  • Serve as a HTTPS proxy, tunnel to a periodically rotating random remote proxy.

Install

  1. Install Python 3.6.8+.
  2. Install requirements:
    pip3 install -r requirements.txt
    

Usage

  1. Modify config.py according to your needs.
  2. Scrape proxies from multi pools:
    python3 pool_scraper.py
    
    If you need to run periodically, please use the job scheduler of the operating system.
    It is recommended to scrape hourly.
  3. Run a dynamic chained HTTPS proxy:
    python3 dynamic_proxy.py
    
    Which will tunnel to a random proxy from those scraped before, rotate periodically.

Pools

  • clarketm/proxy-list (AKA spys.me)
    • pubproxy.com
    • spys.one
  • fate0/proxylist (AKA proxylist.fatezero.org)
  • free-proxy-list.net (include several subsites)
  • hookzof/socks5_list
  • proxy-list.download
  • proxyscrape.com
  • socks-proxy.net (subsite of free-proxy-list.net)
  • sslproxies.org (subsite of free-proxy-list.net)
  • us-proxy.org (subsite of free-proxy-list.net)

dynamic_proxy's People

Contributors

nullpointermaker avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

dynamic_proxy's Issues

Not compatible with SOCKS4 proxy

When using pysocks for SOCKS4 proxies:

s=socks.socksocket()
s.set_proxy(socks.SOCKS4,addr,port)
s.connect((host, 80))

will occur errors:

Traceback (most recent call last):
  File "/usr/local/lib64/python3.6/site-packages/socks.py", line 809, in connect
    negotiate(self, dest_addr, dest_port)
  File "/usr/local/lib64/python3.6/site-packages/socks.py", line 651, in _negotiate_SOCKS4
    raise SOCKS4Error("{:#04x}: {}".format(status, error))
socks.SOCKS4Error: 0x5b: Request rejected or failed

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "dynamic_proxy.py", line 98, in conn_client
    from_server, to_server = await conn_server(server_host, server_port)
  File "dynamic_proxy.py", line 47, in conn_server
    sock.connect((server_host, server_port))
  File "/usr/local/lib64/python3.6/site-packages/socks.py", line 47, in wrapper
    return function(*args, **kwargs)
  File "/usr/local/lib64/python3.6/site-packages/socks.py", line 814, in connect
    raise GeneralProxyError("Socket error", error)
socks.GeneralProxyError: Socket error: 0x5b: Request rejected or failed

Raled issue: Anorov/PySocks#118

If anyone knows how to fix it, or have other solutions, please let me know.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.