GithubHelp home page GithubHelp logo

hhy5277 / proxies Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 0xhjk/proxies

0.0 1.0 0.0 271 KB

100行Python代码快速获得一个代理池,两分钟获得数千个有效代理

Python 100.00%

proxies's Introduction

Proxies

100行Python代码快速获得一个代理池,两分钟获得数千个有效代理。

爬虫一般情况下需要FQ,请自行修改SPIDER_PROXIES的配置,参考格式:

SPIDER_PROXIES = {'http': 'socks5://127.0.0.1:1086', 'https': 'socks5://127.0.0.1:1086'}

如果发现新的站点,可以增加SITES的内容

USAGE 使用方法

安装依赖

pip3 install requests

运行

python3 run.py

# 指定验证的URL(默认是ip138)
python3 run.py -u 'https://www.baidu.com'

# 指定输出文件位置(默认是proxies.txt)
python3 run.py -o 'output.txt'

# 指定从文件读入代理校验(默认是爬虫爬代理)
python3 run.py -f 'input.txt'

# 从指定文件读取代理,并指定校验网站和输出位置
python3 run.py -f 'input.txt' -u 'https://www.baidu.com' -o 'output.txt'

注意:输出文件会被覆盖。

Preview

LICENSE

WTFPL

proxies's People

Contributors

0xhjk avatar

Watchers

 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.