Coder Social home page Coder Social logo

https-proxy's Introduction

功能简介

  • 通过爬取西刺代理上的https代理点,获取可用的https代理点
  • 可自定义timeout的时间,以及将代理点导出至文件
  • 采用多线程的方式(线程数为100),一般耗时3s左右

使用方法

  • -t 自定义timeout的时间(可选,默认为1s)
  • -h 自定义导出至文件的文件名(可选,默认直接输出)

一些使用示例

  • 不带参数使用时,直接输出代理节点
D:\Code\https-proxy>python proxies.py
('124.193.37.5', '8888')
('119.28.138.104', '3128')
  • 获取timeout为1,将数据输出至test.txt文件下
D:\Code\https-proxy>python proxies.py -t 1 -f test.txt
('180.168.184.179', '53128')
('120.92.119.187', '10000')
('223.241.79.146', '18118')
('211.159.177.212', '3128')
('124.193.37.5', '8888')
('118.212.137.135', '31288')
('119.28.138.104', '3128')

输出至test.txt

***********starting Wed Apr  4 16:13:39 2018, timeout is 0.5**************
('180.168.184.179', '53128')
('120.92.119.187', '10000')
('223.241.79.146', '18118')
('211.159.177.212', '3128')
('124.193.37.5', '8888')
('118.212.137.135', '31288')
('119.28.138.104', '3128')

https-proxy's People

Contributors

kingkaki avatar

Watchers

 avatar

Forkers

championim uncia

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.