Giter Club home page Giter Club logo

mapo's Introduction

MaPo

接码服务器,采集各个手机验证码短信接码平台的免费号码,自定义插拔 路由和处理器,低耦合的接码服务器~

使用

  • 依赖: pip install -r requirements.txt
  • 运行: python index.py
  • 插拔:
    • custom.py是自定义采集器文件,根据crawlers.py中的F4Crawler类格式编写自己的新增采集器
    • 每个采集器类的属性urls即是服务器的路由和处理器映射

示例

1.使用内置的接码器获取可用手机号码

通过python index.py运行服务器,而后:

import requests
api = 'http://127.0.0.1:8899/F4/phone'
data = requests.get(api)

返回数据:

{
  "success": 0,
  "data": [
    {
      "code": "44",
      "url": "https://f4.work/list_free.php?list=PHONELIST_1_1_44",
      "area": "(+44) 英国 United Kingdom ",
      "phones": [
        "07366507512",
        "07853962493",
        "07367417565",
        "07723662724",
        "07838031796"
      ]
    },
    {
      "code": "852",
      "url": "https://f4.work/list_free.php?list=PHONELIST_1_1_852",
      "area": "(+852) 香港 Hong Kong ",
      "phones": [
        "65894142",
        "64860069",
        "69951654",
        "65799786",
        "51359484"
      ]
    },
    {
      "code": "63",
      "url": "https://f4.work/list_free.php?list=PHONELIST_1_1_63",
      "area": "(+63) 菲律宾 Philippines ",
      "phones": [
        "9664706948",
        "9664706966",
        "9664706978",
        "9664706988",
        "9664706994"
      ]
    },
    {
      "code": "853",
      "url": "https://f4.work/list_free.php?list=PHONELIST_1_1_853",
      "area": "(+853) 澳门 Macao ",
      "phones": [
        "63215758",
        "63846752",
        "63215896",
        "63847041",
        "68436533"
      ]
    }
  ]
}

2.使用内置服务器查询手机号码 +853 68436533中 “美团网” 相关的长度为4的验证码信息

通过python index.py运行服务器,而后:

import requests
api = 'http://127.0.0.1:8899/F4/fetch?pattern=美团网&code=853&phone=68436533&length=4'
data = requests.get(api)

返回数据:

{
  "success": 0,
  "data": [
    {
      "text": "【美团网】3831(登录验证码,请完成验证),如非本人操作,请忽略本短信。",
      "time": "2020-06-24 21:44:56",
      "code": [
        "3831"
      ]
    }
  ]
}

自定义

。。。后续增加或自己插进去

mapo's People

Watchers

James Cloos 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.