Code Monkey home page Code Monkey logo

proxypool's Introduction

ProxyPool

项目参照:Python3WebSpider: ProxyPool

爬虫代理池,实现以下功能:

  • 获取代理网站免费代理;

  • 使用 redis 存储代理数据;

  • 提供测试类测试代理的可用性;

  • 提供代理 API 接口;

项目结构

ProxyPool
 ├── config                       # 配置模块
 │   └── setting.py
 ├── proxypool                    # 代理池
 │   ├── comm                       # 通用模块
 │   │   ├── proxy.py
 │   │   └── utils.py
 │   ├── main.py                  # 调度器
 │   ├── service                  # 服务
 │   │   ├── server.py
 │   │   └── tester.py
 │   ├── spiders                  # 爬虫
 │   │   └── public
 │   │       └── kuaidaili.py
 │   └── storages                 # 存储
 │       └── redis_db.py
 ├── README.md
 ├── requirements.txt
 └── run.py                       # run

运行

安装依赖

pip install -r requirement.txt

设置项目配置

ProxyPool -> config -> setting.py

运行代理池

  1. 全部运行
python run.py
  1. 按需运行
python run.py --processor getter
python run.py --processor tester
python run.py --processor server

proxypool's People

Stargazers

 avatar

Watchers

 avatar

Forkers

melodyjerry

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.