GithubHelp home page GithubHelp logo

async_ip_proxy_pool's Introduction

proxy_pool

after importing the file, use the following to get the proxy pool.

res = Proxy().get_proxy()

the variable res will be a list of strings, the strings will have the format like 'https://111.222.333.444:1234'. This process fetches some proxies from internet and local file and then test if they are still available.

Or if you do not want to test the proxies but just use the proxies in the local file. Set the update parameter as False as following:

res = Proxy(update=False).get_proxy()

notes: install progressbar2 but not progressbar A SSLCertVerificationError might be thrown, but it does not affect the result of the program.

中文版

使用如下方式获取代理ip池

res = Proxy().get_proxy()

这个res是一个string的list。string的形式如:'https://111.222.333.444:1234'。 这个过程会从网络上下载一些代理ip然后和本地保存的代理ip一起测试,看它们是否还都是可用的。

或者如果你只想用本地保存的代理ip。将Proxy构造函数里的update变量设为False如下:

res = Proxy(update=False).get_proxy()

注意安装的是progressbar2而不是progressbar 程序过程中会有SSLCertVerificationError被扔出来,这个不影响程序的结果。

async_ip_proxy_pool's People

Contributors

xgnit avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.