Code Monkey home page Code Monkey logo

proxy_pool's Introduction

Original Code

https://github.com/jhao104/proxy_pool

Usage

  1. download and upload the code
https://github.com/jhao104/proxy_pool/releases 下载对应zip文件
  1. change the path and install the requirments
pip install -r requirements.txt
  1. set the basic infomation

It seemend that the HOST should not be changed,and the PORT need to be opened.

# setting.py 为项目配置文件

# 配置API服务

HOST = "0.0.0.0"               # IP
PORT = 5000                    # 监听端口


# 配置数据库

DB_CONN = 'redis://:[email protected]:8888/0'


# 配置 ProxyFetcher

PROXY_FETCHER = [
    "freeProxy01",      # 这里是启用的代理抓取方法名,所有fetch方法位于fetcher/proxyFetcher.py
    "freeProxy02",
    # ....
]
  1. start it
# 如果已经具备运行条件, 可用通过proxyPool.py启动。
# 程序分为: schedule 调度程序 和 server Api服务

# 启动调度程序
python proxyPool.py schedule

# 启动webApi服务
python proxyPool.py server
  1. visit it at http://ip:port

proxy_pool's People

Contributors

bernieyangmh avatar bhzhangsun avatar bobobo80 avatar dependabot[bot] avatar dustinpt avatar feng409 avatar gladmo avatar halleywj avatar highroom avatar houbaron avatar jhao104 avatar kagxin avatar kangnwh avatar netair avatar newlyedward avatar ozhiwei avatar plokid avatar roronoa-dong avatar scil avatar starkshang avatar sunjngje avatar tinker-li avatar vc5 avatar vissssa avatar wang-ye avatar windhw avatar xhboke avatar xuan25 avatar yeclimeric avatar zuijiawoniu 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.